/* =========================
   LOGIN PAGE
========================= */

.login-page {
    min-height: calc(100vh - 78px);
    padding: 55px 20px 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        180deg,
        #faf7fc 0%,
        #ffffff 65%,
        #fcf9f4 100%
    );
}

.login-container {
    width: 100%;
    max-width: 460px;
}

/* =========================
   BRAND
========================= */

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 8px;
    padding-left: 8px;
    color: var(--text);
}

.login-brand p {
    margin: 7px 0 0;
    color: var(--gold-dark);
    font-size: 8px;
    letter-spacing: 3px;
}

/* =========================
   LOGIN CARD
========================= */

.login-card {
    padding: 42px 38px;
    background: #fff;
    border: 1px solid #eee8f1;
    border-radius: 20px;
    box-shadow: 0 12px 45px rgba(45, 30, 55, 0.07);
}

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

.login-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--gold-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.login-heading h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.login-heading strong {
    color: var(--text);
    font-weight: 600;
}

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

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form label {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    border: 1px solid #e9e2eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--gold-dark);
}

.country-code {
    padding: 0 15px;
    color: #514957;
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid #eee8f1;
}

.phone-input-wrapper input {
    width: 100%;
    height: 100%;
    padding: 0 14px;
    border: none;
    outline: none;
    color: var(--text);
    background: transparent;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.phone-input-wrapper input::placeholder {
    color: #aaa4ad;
    font-size: 13px;
}

.otp-input {
    width: 100%;
    height: 58px;
    padding: 10px 15px;
    border: 1px solid #e9e2eb;
    border-radius: 10px;
    outline: none;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 12px;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    border-color: var(--gold-dark);
}

.otp-input::placeholder {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #aaa4ad;
}

/* =========================
   BUTTON
========================= */

.login-button {
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        110deg,
        #5b2589,
        #7941a0
    );

    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button span {
    font-size: 19px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(91, 37, 137, 0.2);
}

/* =========================
   TERMS
========================= */

.login-terms {
    margin: 22px 0 0;
    color: #99929c;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
}

.login-terms a {
    color: var(--gold-dark);
    font-weight: 600;
}

/* =========================
   OTP FOOTER
========================= */

.otp-footer {
    margin-top: 23px;
    text-align: center;
}

.otp-footer form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
}

.resend-button {
    padding: 0;
    border: none;
    background: none;
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.change-number {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
}

.login-error {
    margin: 10px 0 0;
    color: #c0392b;
    font-size: 12px;
}

/* =========================
   SECURITY NOTE
========================= */

.login-security {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #99929c;
    font-size: 11px;
    text-align: center;
}

.security-icon {
    color: var(--gold);
    font-size: 15px;
}

/* =========================
   WHATSAPP SUPPORT
========================= */

.whatsapp-support {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 200;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 19px;

    border-radius: 50px;
    background: #25D366;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-support:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-support svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .login-page {
        min-height: calc(100vh - 65px);
        padding: 40px 18px 95px;
    }

    .login-brand {
        margin-bottom: 24px;
    }

    .login-brand h1 {
        font-size: 31px;
    }

    .login-card {
        padding: 35px 24px;
        border-radius: 17px;
    }

    .login-heading h2 {
        font-size: 24px;
    }

    .whatsapp-support {
        right: 16px;
        bottom: 16px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {

    .login-card {
        padding: 30px 19px;
    }

    .login-heading h2 {
        font-size: 22px;
    }

    .whatsapp-support {
        right: 12px;
        bottom: 12px;
    }
}