/* Login Page Styles - DockerLabs - Premium Two-Column Version */

.login-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for depth */
.login-container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

.login-box {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
    max-width: 900px;
    /* Ensure enough width for two columns */
    width: 95%;
    /* Make it responsive but wide enough */
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-box:hover {
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    grid-column: 1 / -1;
    /* Ensure header spans full width if inside grid, though it's outside in HTML */
}

.login-header h2 {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Two-Column Grid Layout */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.auth-column-left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-column-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding-left: 1rem;
}

/* Login Form Elements */
.login-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.form-group input:focus+label,
.form-group:focus-within label {
    color: var(--primary-blue-light);
}

.form-group label i {
    margin-right: 0.6rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.form-group:focus-within label i {
    color: var(--primary-blue);
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f1f5f9;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
    /* Space below button */
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4), 0 4px 6px -2px rgba(59, 130, 246, 0.2);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-login i {
    margin-right: 0.6rem;
}

/* Links */
.login-links {
    text-align: center;
}

.login-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.login-links a:hover {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.login-links a i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-blue-light);
}

.login-links a:hover i {
    color: var(--accent-cyan);
}

/* Divider */
.login-divider {
    text-align: center;
    position: relative;
    margin: 0.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.login-divider span {
    background: transparent;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    backdrop-filter: blur(4px);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    backdrop-filter: blur(4px);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    backdrop-filter: blur(4px);
}

/* Rate Limit Timer */
#rl-seconds {
    font-weight: 700;
    color: var(--accent-yellow);
    font-variant-numeric: tabular-nums;
}

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.security-badge i {
    color: var(--accent-green);
    font-size: 0.9rem;
}

.security-badge span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Responsive */
/* Responsive */
@media (max-width: 640px) {
    .login-box {
        padding: 2rem 1.5rem;
        max-width: 440px;
        /* Reset width for mobile */
    }

    .auth-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 2rem;
    }

    .auth-column-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 2rem;
    }

    .auth-column-right {
        padding-left: 0;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }

    .btn-login {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .logo-display {
        display: none;
        /* Hide logo on mobile if space is tight, or make it smaller */
    }
}

/* Logo Styles */
.logo-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.auth-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* Footer Actions */
.auth-footer-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: row;
    /* Change to row */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* Space around separator */
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.auth-separator {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.footer-link i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-blue-light);
}

.footer-link:hover i {
    color: var(--accent-cyan);
}