/* ============================================
   Pingstr - Authentication Styles
   ============================================ */

.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   BRANDING SECTION
   ============================================ */

.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-logo i {
    font-size: 56px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo h1 {
    font-size: 42px;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.feature i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
}

.feature span {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Floating Animation */
.brand-animation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icons {
    position: absolute;
    inset: 0;
}

.floating-icons i {
    position: absolute;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.floating-icons i:nth-child(2) { top: 25%; right: 15%; animation-delay: 1s; color: var(--secondary); }
.floating-icons i:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-icons i:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 3s; color: var(--secondary); }
.floating-icons i:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* ============================================
   AUTH FORMS SECTION
   ============================================ */

.auth-forms {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.strength-bar.weak { width: 33%; background: var(--error); }
.strength-bar.medium { width: 66%; background: var(--warning); }
.strength-bar.strong { width: 100%; background: var(--success); }

.password-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: var(--primary);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.auth-btn.primary {
    background: var(--gradient-primary);
    color: white;
}

.auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Social Auth */
.social-auth {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google i { color: #ea4335; }
.social-btn.facebook i { color: #1877f2; }
.social-btn.github i { color: var(--text-primary); }

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.back-btn:hover {
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .auth-branding {
        padding: 40px;
    }
    
    .brand-logo h1 {
        font-size: 36px;
    }
    
    .brand-tagline {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-branding {
        min-height: 40vh;
        padding: 40px 24px;
    }
    
    .brand-features {
        display: none;
    }
    
    .auth-forms {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-auth {
        flex-direction: column;
    }
    
    .social-btn span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .auth-branding {
        min-height: 30vh;
    }
    
    .brand-logo {
        flex-direction: column;
        gap: 12px;
    }
    
    .brand-logo i {
        font-size: 48px;
    }
    
    .brand-logo h1 {
        font-size: 28px;
    }
    
    .brand-tagline {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .auth-form h2 {
        font-size: 26px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
