/* css/auth.css - Modern Login & Register Pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #673DE6;
    --primary-light: #8F6BFF;
    --primary-dark: #5029C4;
    --secondary: #0B0F1A;
    --secondary-light: #11162A;
    --secondary-lighter: #1a1f3c;
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --text-muted: #888888;
    --success: #00B67A;
    --warning: #FFB443;
    --danger: #FF4D4D;
    --border-color: #2a2f42;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(103, 61, 230, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #673DE6 0%, #8F6BFF 50%, #B88FFF 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(103, 61, 230, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(143, 107, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Floating Particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 30% 60%, rgba(255,255,255,0.02) 2px, transparent 2px),
        radial-gradient(circle at 70% 40%, rgba(255,255,255,0.02) 2px, transparent 2px);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.auth-left {
    flex: 1.2;
    background: rgba(11, 15, 26, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 50px 60px;
    position: relative;
    border-right: 1px solid rgba(103, 61, 230, 0.2);
}

.auth-logo {
    margin-bottom: 80px;
}

.auth-logo a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-glow);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(103, 61, 230, 0.4); }
    50% { box-shadow: 0 0 40px rgba(143, 107, 255, 0.6); }
}

.auth-logo h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
}

.auth-logo span {
    color: var(--primary-light);
}

.auth-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-content p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 50px;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(103, 61, 230, 0.15);
    transition: var(--transition);
}

.auth-feature:hover {
    background: rgba(103, 61, 230, 0.08);
    border-color: rgba(103, 61, 230, 0.3);
    transform: translateX(5px);
}

.auth-feature i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.auth-feature .feature-text {
    flex: 1;
}

.auth-feature .feature-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.auth-feature .feature-text span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Testimonial */
.auth-testimonial {
    margin-top: auto;
    padding: 25px;
    background: rgba(103, 61, 230, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(103, 61, 230, 0.2);
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.author-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Right Side - Form */
.auth-right {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form-container {
    background: rgba(17, 22, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 45px 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(103, 61, 230, 0.25);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.input-group i:first-child {
    position: absolute;
    left: 18px;
    color: var(--primary-light);
    font-size: 16px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(11, 15, 26, 0.6);
    border: 1.5px solid rgba(103, 61, 230, 0.2);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1);
    background: rgba(11, 15, 26, 0.8);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

.toggle-password {
    position: absolute !important;
    left: auto !important;
    right: 18px;
    color: var(--text-muted) !important;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px !important;
}

.toggle-password:hover {
    color: var(--primary-light) !important;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 6px;
}

.checkbox-label a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 16px 20px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(103, 61, 230, 0.15);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

.form-footer a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Social Login */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 18px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    border: 1.5px solid rgba(103, 61, 230, 0.2);
    background: rgba(11, 15, 26, 0.6);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.social-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.social-btn.google:hover {
    background: linear-gradient(135deg, #DB4437, #EA4335);
}

.social-btn.facebook:hover {
    background: linear-gradient(135deg, #4267B2, #1877F2);
}

.social-btn.github:hover {
    background: linear-gradient(135deg, #333, #24292e);
}

/* Password Strength Meter */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 4px;
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 25px;
}

.terms-agreement .checkbox-label {
    align-items: flex-start;
}

.terms-agreement .checkbox-label span {
    line-height: 1.5;
}

/* Back to Home Link */
.back-home {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.back-home a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 18px;
    background: rgba(17, 22, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(103, 61, 230, 0.2);
    transition: var(--transition);
}

.back-home a:hover {
    background: rgba(103, 61, 230, 0.2);
    color: var(--text-primary);
    border-color: var(--primary-light);
    transform: translateX(-5px);
}

.back-home a i {
    font-size: 14px;
}

/* Error States */
.input-group.error input {
    border-color: var(--danger);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message i {
    font-size: 12px;
}

/* Success States */
.input-group.success input {
    border-color: var(--success);
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 15px;
    color: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.notification i {
    font-size: 20px;
}

.notification-success {
    background: linear-gradient(135deg, #00B67A, #00D68F);
}

.notification-error {
    background: linear-gradient(135deg, #FF4D4D, #FF6B6B);
}

.notification-warning {
    background: linear-gradient(135deg, #FFB443, #FFCC66);
}

.notification-info {
    background: linear-gradient(135deg, #673DE6, #8F6BFF);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-left {
        padding: 40px;
    }
    
    .auth-content h1 {
        font-size: 40px;
    }
    
    .auth-form-container {
        padding: 35px 30px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 30px 25px;
        border-right: none;
        border-bottom: 1px solid rgba(103, 61, 230, 0.2);
    }
    
    .auth-logo {
        margin-bottom: 40px;
    }
    
    .auth-content h1 {
        font-size: 32px;
    }
    
    .auth-content p {
        margin-bottom: 30px;
        font-size: 15px;
    }
    
    .auth-features {
        gap: 15px;
    }
    
    .auth-testimonial {
        margin-top: 30px;
    }
    
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-form-container {
        padding: 30px 25px;
        max-width: 100%;
    }
    
    .back-home {
        top: 20px;
        right: 20px;
    }
    
    .back-home a span {
        display: none;
    }
    
    .back-home a {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 25px 20px;
    }
    
    .auth-logo h2 {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .auth-content h1 {
        font-size: 28px;
    }
    
    .auth-feature {
        padding: 12px 15px;
    }
    
    .auth-feature i {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .auth-form-container {
        padding: 25px 20px;
    }
    
    .form-header h2 {
        font-size: 26px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .notification {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .auth-left {
        padding: 20px 30px;
    }
    
    .auth-logo {
        margin-bottom: 20px;
    }
    
    .auth-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .auth-content p {
        margin-bottom: 20px;
        font-size: 14px;
    }
    
    .auth-features {
        gap: 10px;
    }
    
    .auth-feature {
        padding: 10px 15px;
    }
    
    .auth-testimonial {
        padding: 15px;
        margin-top: 20px;
    }
}