﻿/* ============================= */
/* FONTS */
/* ============================= */
@font-face {
    font-family: 'Arada';
    src: url('../fonts/Arada-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'AradaHeading';
    src: url('../fonts/AradaHeadline-Regular.ttf') format('truetype');
}

/* ============================= */
/* GLOBAL RESET */
/* ============================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: 'Arada';
    background: #000;
    overflow: hidden;
}


button, input, a {
    font-family: 'Arada';
}

/* ============================= */
/* PAGE BACKGROUND */
/* ============================= */

.page-loader-wrapper {
    background: rgba(255, 255, 255, 0.7) !important;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-align: center;
}

    .page-loader-wrapper p {
        font-size: 13px;
        margin-top: 10px;
        font-weight: bold;
        color: #444;
    }

.login-page {
    /*    min-height: 100vh;*/
    height: 100%;
/*    background-image: url("/images/Background.svg");*/
    background-repeat: no-repeat;
    background-size: cover;
    /* Desktop – shift image slightly RIGHT */
    background-position: 71% center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    flex-direction: column;
    gap: 16px;
}


/* ============================= */
/* WRAPPER */
/* ============================= */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}



/* ============================= */
/* LOGO */
/* ============================= */

.logo {
    width: 150px;
    margin-top: 6vh;
}


/* ============================= */
/* LOGIN CARD */
/* ============================= */
.login-card {
    max-width: 500px;
    width: 90%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    color: #fff;
    overflow: hidden;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
}

/* ============================= */
/* TITLE BOX */
/* ============================= */

.title-box {
    background: #CDA788;
    padding: 16px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}


    .title-box h2 {
        margin: 0;
        font-size: clamp(28px, 4vw, 24px);
        font-weight: 700;
        font-family: 'AradaHeading';
    }

    .title-box p {
        margin: 6px 0 0;
        font-size: 12px;
        font-weight: 400;
    }

/* ============================= */
/* FORM SECTIONS */
/* ============================= */

.formBox {
    padding: 20px 60px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    flex: 1;
    justify-content: center;
}


.signInHeading {
    font-size: 22px;
    margin-bottom: 30px;
}

.description {
    font-size: 14px;
    color: #CACACA;
}

/* ============================= */
/* INPUTS */
/* ============================= */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

    .form-group input {
        width: 100%;
        height: 48px;
        padding: 0 40px 0 14px;
        background: transparent;
        border: 1px solid #666;
        color: white;
        font-size: 16px;
        outline: none;
    }

    .form-group label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        pointer-events: none;
        transition: 0.2s ease;
        background: rgba(0, 0, 0, 0.7);
        padding: 0 4px;
    }

    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label {
        top: -6px;
        font-size: 11px;
        color: #aaa;
    }

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
    display: none;
}

.form-group input:not(:placeholder-shown) ~ .clear-btn {
    display: block;
}

/* ============================= */
/* BUTTONS */
/* ============================= */
button {
    width: 100%;
    height: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #1D428A;
    color: white;
}

.btn-secondary {
    background: white;
    color: black;
}

.btn-outline {
    background: transparent;
    border: 1px solid #aaa;
    color: white;
}

.btn-whatsapp {
    background: #4CAF50;
    color: white;
}

.btn-dark {
    background: #333;
    color: white;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-icon img {
        width: 20px;
        height: 20px;
    }

/* ============================= */
/* OR SEPARATOR */
/* ============================= */
.or {
    margin: 18px 0;
    color: #aaa;
}

/* ============================= */
/* OTP */
/* ============================= */
.otpInput {
    width: 100%;
    height: 48px;
    margin-bottom: 20px;
    background: transparent;
    border: 1px solid #666;
    color: white;
    padding: 0 14px;
}

#otpMessage {
    color: #9AA4B5;
    margin-bottom: 12px;
}

/* ============================= */
/* RESEND */
/* ============================= */
.resend {
    font-size: 14px;
    color: #ccc;
}

.resend-link {
    margin-left: 6px;
    color: #4da3ff;
    cursor: pointer;
    text-decoration: underline;
}

    .resend-link.disabled {
        pointer-events: none;
        color: #777;
        text-decoration: none;
    }

.resend-timer {
    display: block;
    margin-top: 6px;
    color: #ff6b6b;
}

/* ============================= */
/* TOAST */
/* ============================= */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #009970;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
}

/* ============================= */
/* UTILITIES */
/* ============================= */
.hidden {
    display: none !important;
}



/* ============================= */
/* MOBILE */
/* ============================= */
@media (max-width: 480px) {

    .formBox {
        padding: 0px 20px 25px; /* ⬅ makes card taller like Figma */
    }

    .login-card {
        min-height: 300px;
    }



    .login-wrapper {
        padding-top: 0; /* ⬆ move everything up */
    }


    button {
        font-size: 14px;
    }

    .signInHeading {
        font-size: 24px;
    }

    .description {
        font-size: 12px;
    }

    .title-box h2 {
        font-size: 26px;
        font-weight: 700;
        font-family: 'AradaHeading';
    }

    .title-box p {
        font-size: 14px;
        font-weight: 400;
    }

}

.sub-heading {
    width: max-content;
    padding: 2px 16px;
    border-radius: 16.98px;
    background-color: rgba(217, 217, 217, .2);
    color: #fff;
    font-size: 14px;
}
