/* Login Page Specific Styles */

body {
    overflow: hidden;
    min-height: 100vh;
    margin: 0;
    background: var(--bg-dark);
    display: block;
}

.split-screen-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* --- Left Side: Visual (Desktop) --- */
.login-visual {
    flex: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* 3D Scanner Scene */
.scanner-scene {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.scanner-base {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) rotateX(60deg);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
    animation: pulse-base 4s infinite ease-in-out;
}

.scanner-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(20px);
}

.hologram-projection {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    pointer-events: none;
}

.hologram-ring {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: rotate-ring 10s linear infinite;
}

.hologram-ring.inner {
    width: 140px;
    height: 140px;
    border-style: dashed;
    border-color: rgba(59, 130, 246, 0.5);
    animation: rotate-ring 15s linear infinite reverse;
}

.data-stream {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
}

.data-stream span {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    animation: float-up 3s infinite linear;
    opacity: 0;
}

.data-stream span:nth-child(1) { animation-delay: 0s; }
.data-stream span:nth-child(2) { animation-delay: 1s; }
.data-stream span:nth-child(3) { animation-delay: 2s; }

.floating-id-card {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) rotateY(-15deg) rotateX(10deg);
    width: 180px;
    height: 110px;
    transform-style: preserve-3d;
    animation: float-card 6s ease-in-out infinite;
}

.card-face {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

.card-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

.card-chip {
    width: 35px;
    height: 25px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.chip-line {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.2);
    margin: 6px 0;
}

.card-photo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.text-line {
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    margin-bottom: 8px;
    width: 70%;
}

.text-line.short { width: 40%; }

.rfid-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rfid-waves span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 3s infinite;
}

.rfid-waves span:nth-child(2) { animation-delay: 1s; }
.rfid-waves span:nth-child(3) { animation-delay: 2s; }

/* Visual Text */
.visual-text {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 0 40px;
}

.visual-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.feature-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.feature-pills span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.feature-pills span:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.feature-pills span i {
    color: var(--primary-color);
}

/* Background Particles */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.15;
    animation: float-particle 20s infinite linear;
}

.particle:nth-child(1) { width: 300px; height: 300px; top: -50px; left: -50px; animation-duration: 25s; }
.particle:nth-child(2) { width: 200px; height: 200px; bottom: 10%; right: 10%; animation-duration: 20s; animation-delay: -5s; }
.particle:nth-child(3) { width: 150px; height: 150px; top: 40%; left: 60%; animation-duration: 30s; animation-delay: -10s; }
.particle:nth-child(4) { width: 100px; height: 100px; top: 20%; right: 30%; animation-duration: 15s; animation-delay: -2s; }
.particle:nth-child(5) { width: 250px; height: 250px; bottom: -50px; left: 20%; animation-duration: 35s; animation-delay: -8s; }

/* --- Right Side: Form --- */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    animation: slide-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    font-size: 1.8rem;
    color: white;
}

.login-header h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 45px 14px 45px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translate(-40px,-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: color 0.3s;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--white);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-container input:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-login-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-login-submit:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes rotate-ring {
    0% { transform: translateX(-50%) rotateX(75deg) rotateZ(0deg); }
    100% { transform: translateX(-50%) rotateX(75deg) rotateZ(360deg); }
}

@keyframes float-card {
    0%, 100% { transform: translateX(-50%) rotateY(-15deg) rotateX(10deg) translateY(0); }
    50% { transform: translateX(-50%) rotateY(-5deg) rotateX(5deg) translateY(-20px); }
}

@keyframes shine {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 0.8; }
    100% { width: 300px; height: 300px; opacity: 0; }
}

@keyframes float-particle {
    0% { transform: translate(0, 0); }
    25% { transform: translate(50px, 50px); }
    50% { transform: translate(0, 100px); }
    75% { transform: translate(-50px, 50px); }
    100% { transform: translate(0, 0); }
}

@keyframes pulse-base {
    0%, 100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.1); opacity: 0.8; }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.2); opacity: 1; }
}

@keyframes float-up {
    0% { transform: translateY(20px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .login-visual {
        display: none;
    }
    
    .login-section {
        flex: 1;
        width: 100%;
        background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    }
    
    .login-card {
        max-width: 400px;
        background: rgba(17, 17, 17, 0.8);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
        border: none;
        background: transparent;
        box-shadow: none;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.error-message.visible {
    opacity: 1;
}

.error-message i {
    font-size: 0.9rem;
}