/**
 * Zappywin Platform - Dedicated Authentication Styles (auth.css)
 * Dark Gaming Aesthetic, Glowing Gold Accents, Mobile-First Viewport
 */

/* Auth Body & Page Canvas */
.auth-body {
    min-height: 100vh;
    background-color: #07090f;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 183, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(0, 230, 118, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(124, 77, 255, 0.05) 0%, transparent 40%);
    color: #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Minimal Header */
.auth-header {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 9, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.auth-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-text {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
}

.auth-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.auth-back-link:hover {
    color: #ffb700;
    border-color: rgba(255, 183, 0, 0.4);
    background: rgba(255, 183, 0, 0.08);
}

/* Main Viewport */
.auth-main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

/* Auth Card */
.auth-card {
    background: rgba(16, 22, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 
        0 24px 50px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(255, 183, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

/* Card Header */
.auth-card-header {
    text-align: center;
    margin-bottom: 26px;
}

.auth-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffb700;
    background: rgba(255, 183, 0, 0.12);
    border: 1px solid rgba(255, 183, 0, 0.3);
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.auth-pill-badge.badge-bonus {
    color: #00e676;
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.3);
}

.auth-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.auth-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.45;
}

/* Alert Notification Box */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 61, 113, 0.12);
    border: 1px solid rgba(255, 61, 113, 0.35);
    color: #ff6b8b;
    animation: fadeIn 0.3s ease;
}

.auth-alert.alert-success {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.35);
    color: #00e676;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Controls */
.auth-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.auth-help-text {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 5px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    background: #0b0f19;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.phone-input-group:focus-within {
    border-color: #ffb700;
    box-shadow: 0 0 14px rgba(255, 183, 0, 0.25);
}

.country-pill {
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1.5px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.phone-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
    outline: none;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field {
    width: 100%;
    background: #0b0f19;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 46px 12px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.password-field:focus {
    border-color: #ffb700;
    box-shadow: 0 0 14px rgba(255, 183, 0, 0.25);
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: #ffb700;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    pointer-events: none;
    font-size: 0.9rem;
}

.auth-input {
    width: 100%;
    background: #0b0f19;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: #ffb700;
    box-shadow: 0 0 14px rgba(255, 183, 0, 0.25);
}

/* Custom Checkbox */
.custom-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
    display: none;
}

.checkbox-indicator {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #0b0f19;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    transition: all 0.2s ease;
}

.custom-checkbox-wrap input[type="checkbox"]:checked + .checkbox-indicator {
    background: #ffb700;
    border-color: #ffb700;
}

.custom-checkbox-wrap input[type="checkbox"]:checked + .checkbox-indicator::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    color: #07090e;
}

.checkbox-label {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.auth-link-small {
    font-size: 0.76rem;
    color: #ffb700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link-small:hover {
    color: #ffc800;
    text-decoration: underline;
}

/* Submit Action Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffc800 0%, #ff9500 100%);
    border: none;
    border-radius: 12px;
    color: #07090e;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255, 183, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 183, 0, 0.55);
    background: linear-gradient(135deg, #ffd333 0%, #ffa51f 100%);
}

.auth-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Card Switch Footer */
.auth-card-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.auth-switch-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-switch-btn:hover {
    background: rgba(255, 183, 0, 0.1);
    border-color: rgba(255, 183, 0, 0.4);
    color: #ffb700;
}

.auth-switch-secondary:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.4);
    color: #00e676;
}

/* Minimal Footer */
.auth-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 9, 15, 0.7);
}

.auth-footer-content {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-footer-sub {
    font-size: 0.7rem;
    color: #475569;
}

/* Responsive Media Queries */
@media (max-width: 575.98px) {
    .auth-main-wrapper {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 26px 18px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-header {
        height: 60px;
    }
}
