/**
 * Auth Popup V2 — Scoped CSS Redesign
 * Phase 1: Visual refresh of auth popup without touching global styles
 * 
 * RULES:
 * - EVERY selector MUST start with .auth-popup-v2
 * - NEVER override styles outside this scope
 */

/* ==========================================================================
   1. CONTAINER
   ========================================================================== */
.auth-popup-v2 {
    max-width: 496px;
}

/* ==========================================================================
   2. TITLE
   ========================================================================== */
.auth-popup-v2 .header__registration-entrance__title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 24px;
}

/* ==========================================================================
   3. BUTTONS — Primary
   ========================================================================== */
.auth-popup-v2 .btn {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.auth-popup-v2 .btn:hover {
    background: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.auth-popup-v2 .btn:active {
    background: #1a1a1a;
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. BUTTONS — Secondary (.btn-white) — white bg for Registration & Back
   ========================================================================== */
.auth-popup-v2 .btn-white {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
}

.auth-popup-v2 .btn-white:hover {
    background: #f5f5f5;
    border-color: #000;
    transform: translateY(-1px);
}

/* ==========================================================================
   4b. BUTTONS — SMS Login (black, overrides .btn-white)
   ========================================================================== */
.auth-popup-v2 #show-sms-login-form {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.auth-popup-v2 #show-sms-login-form:hover {
    background: #1A1A1A;
    border-color: #1A1A1A;
}
/* ==========================================================================
   5. BUTTONS — Auth-specific
   ========================================================================== */
.auth-popup-v2 .header__registration-entrance__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
}

.auth-popup-v2 .header__registration-entrance__btn--hidden {
    display: none !important;
}

/* ==========================================================================
   6. FORM FIELDS
   ========================================================================== */
.auth-popup-v2 .private__field,
.auth-popup-v2 .field {
    margin-bottom: 12px;
}

.auth-popup-v2 .private__field input,
.auth-popup-v2 .field input {
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.auth-popup-v2 .private__field input::placeholder,
.auth-popup-v2 .field input::placeholder {
    color: #999;
}

.auth-popup-v2 .private__field input:focus,
.auth-popup-v2 .field input:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    outline: none;
}

/* ==========================================================================
   7. FIELD TEXT LABELS
   ========================================================================== */
.auth-popup-v2 .private__field-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.auth-popup-v2 .header__registration-entrance__footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-popup-v2 .header__registration-entrance__link {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-popup-v2 .header__registration-entrance__link:hover {
    color: #000;
    text-decoration: underline;
}

/* ==========================================================================
   9. ERROR MESSAGES
   ========================================================================== */
.auth-popup-v2 .check-sms-text {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
}

/* ==========================================================================
   10. FORM SPACING
   ========================================================================== */
.auth-popup-v2 .header__registration-entrance__fields {
    margin-bottom: 20px;
}

/* ==========================================================================
   11. MOBILE — 991px
   ========================================================================== */
@media (max-width: 991px) {
    .auth-popup-v2 .btn {
        padding: 13px 28px;
        font-size: 14px;
    }
}

/* ==========================================================================
   12. MOBILE — 767px (fullscreen)
   ========================================================================== */
@media (max-width: 767px) {
    .auth-popup-v2 {
        max-width: 100%;
    }

    .auth-popup-v2 .header__registration-entrance__title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .auth-popup-v2 .btn {
        width: 100%;
        padding: 14px 0;
    }

    .auth-popup-v2 .private__field input,
    .auth-popup-v2 .field input {
        width: 100%;
    }

    .auth-popup-v2 * {
        max-width: 100vw;
    }
}

/* ==========================================================================
   13. SMALL MOBILE — 390px
   ========================================================================== */
@media (max-width: 390px) {
    .auth-popup-v2 .btn {
        font-size: 14px;
        padding: 12px 0;
    }

    .auth-popup-v2 .private__field input,
    .auth-popup-v2 .field input {
        height: 44px;
        font-size: 14px;
    }

    .auth-popup-v2 .header__registration-entrance__title {
        font-size: 18px;
    }
}
