/* ========================================
   MODERN FUTURISTIC AUTH PAGES STYLES
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Futuristic Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --cyber-blue: #00d4ff;
    --cyber-purple: #9d50ff;
    --cyber-pink: #ff006e;
    --dark-bg: #0a0e27;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.5);
}

body.auth-page {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.auth-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(157, 80, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 0, 110, 0.2) 0%, transparent 50%);
    animation: rotateBg 20s ease-in-out infinite;
}

.auth-background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    animation: scanLine 8s linear infinite;
}

@keyframes rotateBg {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Floating Particles */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyber-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px var(--cyber-blue);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Main Container */
.auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 968px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Left Side - Branding */
.auth-branding {
    text-align: center;
    padding: 2rem;
}

.auth-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
    }
}

.auth-branding h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.auth-branding p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Glassmorphism Card */
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Form Header */
.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group select {
    background: rgba(10, 14, 39, 0.8);
    color: var(--text-primary);
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem;
}

.form-group select option:hover,
.form-group select option:checked,
.form-group select option:focus {
    background: rgba(102, 126, 234, 0.3) !important;
    color: var(--text-primary) !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyber-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.form-group select:focus {
    background: rgba(10, 14, 39, 0.9);
    color: var(--text-primary);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Icon Inputs */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.input-wrapper input {
    padding-left: 3rem;
}

.input-wrapper select {
    padding-left: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(10, 14, 39, 0.8) !important;
    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='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 3rem;
    color: var(--text-primary) !important;
}

.input-wrapper select::-ms-expand {
    display: none;
}

.input-wrapper select option {
    background-color: var(--dark-bg) !important;
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    padding: 1rem;
}

.input-wrapper select option:checked,
.input-wrapper select option:hover,
.input-wrapper select option:focus {
    background-color: rgba(102, 126, 234, 0.3) !important;
    background: rgba(102, 126, 234, 0.3) !important;
    color: var(--text-primary) !important;
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper:focus-within i {
    color: var(--cyber-blue);
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input:focus ~ i,
.input-wrapper select:focus ~ i {
    color: var(--cyber-blue);
}

/* Remember Me & Forgot Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--cyber-blue);
}

.checkbox-wrapper label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.forgot-password {
    color: var(--cyber-blue);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--cyber-purple);
    text-shadow: 0 0 10px rgba(157, 80, 255, 0.5);
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 1.125rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn span {
    position: relative;
    z-index: 1;
}

/* Account Link */
.account-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.account-link span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.account-link a {
    color: var(--cyber-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.account-link a:hover {
    color: var(--cyber-purple);
    text-shadow: 0 0 10px rgba(157, 80, 255, 0.5);
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: rgba(255, 0, 110, 0.15);
    border-color: rgba(255, 0, 110, 0.3);
    color: #ff6b9d;
}

.alert-success {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: #66d9ff;
}

.alert-info {
    background: rgba(157, 80, 255, 0.15);
    border-color: rgba(157, 80, 255, 0.3);
    color: #b380ff;
}

/* Two Column Layout for Register */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* Password Description */
.description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.description i {
    margin-top: 0.2rem;
    color: var(--cyber-blue);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-branding h1 {
        font-size: 2rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Topbar & Navbar Override */
.topbar-area,
.navbar-area {
    display: none;
}

/* Loading State */
.auth-submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

