/* ==========================================================================
   AUTH PAGES - Premium Login/Register Styles
   Phase 6: Enhanced Authentication UI
   ========================================================================== */

/* --- Auth Container --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="rgba(102,126,234,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100%, 60px 60px;
}

/* --- Auth Card Premium --- */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-card .card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-bottom: none;
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
}

.auth-card .card-header img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.auth-card .card-header h4 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-card .card-body {
    padding: 2rem;
}

/* --- Premium Tab Pills --- */
.nav-pills.auth-tabs {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 50px;
    padding: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.nav-pills.auth-tabs .nav-link {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    color: #6c757d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.nav-pills.auth-tabs .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
    z-index: -1;
}

.nav-pills.auth-tabs .nav-link.active::before {
    opacity: 1;
}

.nav-pills.auth-tabs .nav-link.active {
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    transform: scale(1.02);
}

.nav-pills.auth-tabs .nav-link.hostess-active::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.nav-pills.auth-tabs .nav-link.hostess-active {
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.35);
}

/* --- Form Inputs Premium --- */
.form-floating.auth-input {
    margin-bottom: 1.25rem;
}

.form-floating.auth-input .form-control {
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 1.25rem 1rem;
    height: auto;
    font-size: 1rem;
    background: linear-gradient(145deg, #ffffff, #fafafa);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-floating.auth-input .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
}

.form-floating.auth-input label {
    padding: 1rem;
    color: #6c757d;
}

/* --- Submit Button Premium --- */
.btn-auth-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    padding: 1rem 2rem;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: white;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-auth-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-auth-submit:hover::before {
    left: 100%;
}

.btn-auth-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-auth-submit.hostess-mode {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-auth-submit.hostess-mode:hover {
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.4);
}

/* --- Social Login Buttons --- */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e9ecef, transparent);
}

.social-login-divider span {
    padding: 0 1rem;
    color: #adb5bd;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #1a1a2e;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-bottom: 0.75rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-social.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-social.facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* --- Links Premium --- */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
}

.auth-link:hover::after {
    width: 100%;
}

/* --- Remember Me Checkbox --- */
.form-check.auth-check .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-check.auth-check .form-check-input:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.form-check.auth-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* --- Password Strength Indicator --- */
.password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: linear-gradient(90deg, #22c55e, #10b981);
}

/* --- Mobile Responsive --- */
@media (max-width: 576px) {
    .auth-wrapper {
        padding: 1rem;
    }

    .auth-card {
        border-radius: 20px;
    }

    .auth-card .card-header {
        padding: 2rem 1.5rem 1rem;
    }

    .auth-card .card-body {
        padding: 1.5rem;
    }

    .nav-pills.auth-tabs .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}