/* =========================================
   AUTH OVERLAY
========================================= */

.auth-overlay {

    display: none;

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 20, 15, 0.75);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    align-items: center;

    justify-content: center;

    z-index: 9998;
}


.auth-overlay.active {

    display: flex !important;

}


/* =========================================
   MODAL
========================================= */

.auth-modal {

    display: block;

    position: relative;

    width: min(500px, 90vw);

    max-height: 90vh;

    padding: 32px;

    box-sizing: border-box;

    background: #003d2d;

    border: 1px solid #d4af37;

    border-radius: 18px;

    overflow-y: auto;

    z-index: 9999;

    box-shadow:

        0 20px 60px rgba(0, 0, 0, 0.5);

}


/* =========================================
   CLOSE
========================================= */

.auth-close {

    position: absolute;

    top: 14px;

    right: 17px;

    width: 30px;

    height: 30px;

    border: 1px solid #f4c542;

    border-radius: 50%;

    background: transparent;

    color: #f4c542;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    z-index: 2;

}


.auth-close:hover {

    background: rgba(244, 197, 66, 0.12);

}


/* =========================================
   LOGO
========================================= */

.auth-logo {

    text-align: center;

    margin-bottom: 22px;

}


.auth-logo img {

    width: 125px;

    height: auto;

}


/* =========================================
   HEADINGS
========================================= */

.auth-step h2 {

    margin: 0;

    text-align: center;

    color: #f4c542;

    font-family: 'Playfair Display', serif;

    font-size: 28px;

}


.auth-subtitle {

    margin: 8px 0 25px;

    text-align: center;

    color: #d5ded9;

    font-family: 'Inter', sans-serif;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================
   LABELS
========================================= */

.auth-step label {

    display: block;

    margin-bottom: 7px;

    color: #f4c542;

    font-family: 'Inter', sans-serif;

    font-size: 12px;

    font-weight: 600;

}


/* =========================================
   INPUT
========================================= */

.mobile-input,

.form-group input {

    width: 100%;

    box-sizing: border-box;

    height: 45px;

    border: 1px solid rgba(244, 197, 66, 0.55);

    border-radius: 8px;

    background: rgba(0, 20, 13, 0.65);

    color: white;

    font-family: 'Inter', sans-serif;

}


.mobile-input {

    display: flex;

    align-items: center;

}


.mobile-input span {

    padding: 0 12px;

    color: #f4c542;

    border-right: 1px solid rgba(244, 197, 66, 0.3);

}


.mobile-input input {

    flex: 1;

    height: 100%;

    padding: 0 12px;

    border: 0;

    outline: 0;

    background: transparent;

    color: white;

}


.form-group {

    margin-bottom: 15px;

}


.form-group input {

    padding: 0 13px;

    outline: none;

}


.form-group input:focus,

.mobile-input:focus-within {

    border-color: #f4c542;

    box-shadow:

        0 0 10px rgba(244, 197, 66, 0.12);

}


.form-group input::placeholder,

.mobile-input input::placeholder {

    color: #82948c;

}


/* =========================================
   GOLD BUTTON
========================================= */

.gold-action-btn {

    width: 100%;

    height: 45px;

    margin-top: 20px;

    border: 1px solid #f4c542;

    border-radius: 8px;

    background: #f4c542;

    color: #062015;

    font-family: 'Inter', sans-serif;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s ease;

}


.gold-action-btn:hover {

    background: #ffd95a;

    box-shadow:

        0 0 18px rgba(244, 197, 66, 0.3);

}


/* =========================================
   OTP
========================================= */

.otp-container {

    display: flex;

    justify-content: center;

    gap: 8px;

    margin: 25px 0;

}


.otp-box {

    width: 43px;

    height: 48px;

    text-align: center;

    border: 1px solid rgba(244, 197, 66, 0.55);

    border-radius: 7px;

    background: rgba(0, 20, 13, 0.7);

    color: #f4c542;

    font-size: 20px;

    font-weight: 700;

    outline: none;

}


.otp-box:focus {

    border-color: #f4c542;

    box-shadow:

        0 0 10px rgba(244, 197, 66, 0.2);

}


/* =========================================
   OTP ACTIONS
========================================= */

.otp-actions {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.change-number-btn,

.resend-btn {

    border: none;

    background: transparent;

    color: #f4c542;

    font-size: 11px;

    cursor: pointer;

}


.change-number-btn:hover,

.resend-btn:hover {

    text-decoration: underline;

}


/* =========================================
   SECURITY
========================================= */

.auth-security {

    margin-top: 18px;

    text-align: center;

    color: #879a91;

    font-size: 10px;

}


/* =========================================
   SUCCESS
========================================= */

.success-step {

    text-align: center;

    padding: 20px 0;

}


.success-icon {

    width: 65px;

    height: 65px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #f4c542;

    border-radius: 50%;

    color: #f4c542;

    font-size: 32px;

    box-shadow:

        0 0 20px rgba(244, 197, 66, 0.25);

}


.success-step p {

    color: #d5ded9;

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 500px) {

    .auth-modal {

        padding: 28px 20px;

        border-radius: 14px;

    }


    .auth-step h2 {

        font-size: 24px;

    }


    .otp-container {

        gap: 5px;

    }


    .otp-box {

        width: 39px;

        height: 45px;

    }

}