/* ===========================
   LOGIN PAGE STYLES
   Iron Man Arc Reactor Theme
   =========================== */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    width: 100%;
    z-index: 10;
}

/* ===========================
   BRANDING SECTION
   =========================== */

.login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.arc-reactor {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: var(--spacing-2xl);
    perspective: 1000px;
}

.reactor-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FF6B35 0%, #D85030 50%, rgba(255, 107, 53, 0.3) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.8),
        0 0 40px rgba(255, 107, 53, 0.5),
        0 0 60px rgba(255, 107, 53, 0.3),
        inset -20px -20px 40px rgba(0, 0, 0, 0.3);
    animation: 
        glow-pulse 3s ease-in-out infinite,
        float 4s ease-in-out infinite;
}

.reactor-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 107, 53, 0.6) 45deg, transparent 90deg);
}

.reactor-ring-1 {
    width: 150px;
    height: 150px;
    animation: spin-reverse 8s linear infinite;
}

.reactor-ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(29, 209, 161, 0.3);
    animation: spin 6s linear infinite;
}

.reactor-ring-3 {
    width: 250px;
    height: 250px;
    border-color: rgba(0, 78, 137, 0.3);
    animation: spin-reverse 10s linear infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 107, 53, 0.8),
            0 0 40px rgba(255, 107, 53, 0.5),
            0 0 60px rgba(255, 107, 53, 0.3),
            inset -20px -20px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 107, 53, 1),
            0 0 60px rgba(255, 107, 53, 0.7),
            0 0 90px rgba(255, 107, 53, 0.5),
            inset -20px -20px 40px rgba(0, 0, 0, 0.3);
    }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

@keyframes spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.login-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-shadow: 
        0 0 20px rgba(255, 107, 53, 0.5),
        0 0 40px rgba(255, 107, 53, 0.3);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.login-subtitle {
    font-size: 1.2rem;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.login-description {
    font-size: 0.95rem;
    color: var(--muted-text);
    max-width: 350px;
    line-height: 1.8;
}

/* ===========================
   LOGIN FORM
   =========================== */

.login-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    background: linear-gradient(135deg, rgba(21, 26, 47, 0.9) 0%, rgba(0, 78, 137, 0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: var(--spacing-2xl);
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(255, 107, 53, 0.2),
        inset 0 0 20px rgba(255, 107, 53, 0.05);
    animation: slideIn 0.8s ease-out;
}

.form-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.label-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.form-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--dark-border);
    background: rgba(10, 14, 39, 0.6);
    color: var(--light-text);
    font-family: var(--font-body);
    border-radius: 4px;
    transition: all var(--transition-normal);
    font-size: 1rem;
    backdrop-filter: blur(5px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.3),
        inset 0 0 10px rgba(255, 107, 53, 0.05);
}

.form-input::placeholder {
    color: var(--muted-text);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

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

.checkbox-label {
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
    color: var(--muted-text);
}

/* Button */
.btn-block {
    width: 100%;
    position: relative;
}

.btn-submit {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    padding: var(--spacing-lg) var(--spacing-xl);
    overflow: visible;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: pulse-btn 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse-btn {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Form Footer */
.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--dark-border);
    font-size: 0.9rem;
}

.form-link {
    color: var(--accent);
    transition: all var(--transition-fast);
}

.form-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-divider {
    color: var(--dark-border);
}

/* System Status */
.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--muted-text);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(29, 209, 161, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    letter-spacing: 0.05em;
}

/* ===========================
   PARTICLES
   =========================== */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.8), rgba(255, 107, 53, 0));
    border-radius: 50%;
    animation: float-particle linear infinite;
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    top: 20%;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 80%;
    top: 10%;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 50%;
    top: 60%;
    animation-duration: 12s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 20%;
    top: 80%;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 90%;
    top: 70%;
    animation-duration: 11s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .login-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .login-branding {
        margin-bottom: var(--spacing-lg);
    }

    .arc-reactor {
        width: 200px;
        height: 200px;
    }

    .reactor-ring-1 {
        width: 100px;
        height: 100px;
    }

    .reactor-ring-2 {
        width: 150px;
        height: 150px;
    }

    .reactor-ring-3 {
        width: 200px;
        height: 200px;
    }

    .reactor-core {
        width: 60px;
        height: 60px;
    }

    .login-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: var(--spacing-md);
        min-height: auto;
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

    .login-content {
        gap: var(--spacing-lg);
    }

    .login-branding {
        display: none;
    }

    .login-form-container {
        padding: var(--spacing-lg);
    }

    .form-title {
        font-size: 1.2rem;
    }

    .arc-reactor {
        width: 150px;
        height: 150px;
        margin-bottom: var(--spacing-lg);
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .particles-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        border-width: 1px;
        padding: var(--spacing-md);
    }

    .form-title {
        font-size: 1rem;
    }

    .form-input {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .btn-submit {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}
