/* Auth Pages - Login & Register */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.auth-wrapper.theme-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 500px;
}

.theme-dark .auth-card {
    background: #1e1e2e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.theme-dark .auth-card-left {
    background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
}

.auth-card-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.auth-card-left .brand-logo {
    max-width: 180px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.auth-card-left h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.auth-card-left p {
    font-size: 15px;
    opacity: 0.9;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 300px;
}

.auth-card-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card-right h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.theme-dark .auth-card-right h3 {
    color: #fff;
}

.auth-card-right .auth-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.theme-dark .auth-card-right .auth-subtitle {
    color: #999;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-dark .auth-form label {
    color: #ccc;
}

.auth-form .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.theme-dark .auth-form .form-control {
    border-color: #333;
    background: #2a2a3e;
    color: #fff;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #fff;
}

.theme-dark .auth-form .form-control:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
    background: #2a2a3e;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-group-text {
    border: 2px solid #e8e8e8;
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: #f8f9fa;
    color: #666;

}

.theme-dark .auth-form .input-group-text {
    border-color: #333;
    background: #2a2a3e;
    color: #999;
}

.auth-form .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.theme-dark .auth-divider::before,
.theme-dark .auth-divider::after {
    background: #444;
}

.auth-divider span {
    padding: 0 15px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-decoration: none;
}

.theme-dark .auth-social-btn {
    border-color: #444;
    background: #2a2a3e;
    color: #fff;
}

.auth-social-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    color: #667eea;
    text-decoration: none;
}

.theme-dark .auth-social-btn:hover {
    border-color: #764ba2;
    background: #2a2a40;
    color: #a78bfa;
}

.auth-social-btn img,
.auth-social-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.auth-link {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.theme-dark .auth-footer {
    color: #999;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Checkbox styling */
.auth-form .custom-checkbox .custom-control-label::before {
    border: 2px solid #ddd;
    border-radius: 6px;
}

.auth-form .custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.password-toggle:hover {
    color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 20px 15px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .auth-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 15px;
    }

    .auth-card-left {
        padding: 30px 25px;
        border-radius: 15px 15px 0 0;
    }

    .auth-card-left .brand-logo {
        max-width: 140px;
    }

    .auth-card-left h2 {
        font-size: 22px;
    }

    .auth-card-right {
        padding: 30px 25px;
    }

    .auth-card-right h3 {
        font-size: 20px;
    }
}

/* Alert styling */
.auth-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
}

.auth-alert.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.theme-dark .auth-alert.alert-danger {
    background: #3d1f1f;
    color: #fc8181;
}

.auth-alert.alert-success {
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #276749;
}

.theme-dark .auth-alert.alert-success {
    background: #1f3d2a;
    color: #68d391;
}

/* Verified badge */
.auth-verified-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Loading spinner */
.auth-loading {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Terms box - combined with button */
.auth-terms-box {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 15px 18px;
    margin-top: 20px;
}

.theme-dark .auth-terms-box {
    background: #2a2a3e;
    border-color: #444;
}

.auth-terms-box .custom-control-label {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.theme-dark .auth-terms-box .custom-control-label {
    color: #aaa;
}

/* Gender select styling */
.auth-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.theme-dark .auth-form select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Date input styling */
.auth-form input[type="date"] {
    cursor: pointer;
}

.auth-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.auth-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}