/* /static/css/login.css - Design Moderno Split-Screen */

:root {
    --bg-gradient: radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.16), transparent 55%),
                    radial-gradient(circle at 85% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
                    linear-gradient(145deg, #030913, #060d1a);
    --surface: rgba(11, 18, 32, 0.95);
    --border: rgba(59, 130, 246, 0.28);
    --accent: #38bdf8;
    --accent-hover: #22d3ee;
    --text: #e2e8f0;
    --muted: rgba(148, 163, 184, 0.78);
    --shadow-lg: 0 28px 65px rgba(4, 9, 20, 0.55);
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    background: var(--bg-gradient);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    overflow: hidden;
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* ===== BANNER LATERAL (50% da tela) ===== */
.login-banner {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: brightness(0.7) saturate(1.2);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(6, 13, 26, 0.85) 0%, 
        rgba(15, 23, 42, 0.75) 50%,
        rgba(30, 41, 59, 0.85) 100%);
    backdrop-filter: blur(2px);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 600px;
    text-align: center;
}

.banner-logo {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--accent);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
        transform: scale(1.05);
    }
}

.banner-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
}

.banner-subtitle {
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.85);
    margin-bottom: 40px;
    letter-spacing: 0.03em;
    line-height: 1.5;
    font-weight: 400;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateX(8px);
}

.feature-item svg {
    color: var(--accent);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

/* ===== ÁREA DE LOGIN (50% da tela) ===== */
.login-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.login-header {
    margin-bottom: 36px;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.login-header p {
    font-size: 0.925rem;
    color: var(--muted);
}

/* ===== FLASH MESSAGES ===== */
.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 0.95rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.flash.danger {
    background: rgba(127, 29, 29, 0.45);
    border-color: rgba(248, 113, 113, 0.32);
    color: #fecaca;
}

.flash.success {
    background: rgba(14, 116, 59, 0.42);
    border-color: rgba(74, 222, 128, 0.28);
    color: #bbf7d0;
}

/* ===== FORMULÁRIO ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

label svg {
    opacity: 0.7;
    width: 14px;
    height: 14px;
}

input[type='text'], 
input[type='password'] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

/* ===== BOTÃO DE LOGIN ===== */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(59, 130, 246, 0.5));
    color: #f8fafc;
    font-weight: 600;
    font-size: 0.975rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(59, 130, 246, 0.6));
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
}

.btn-login svg {
    transition: transform 0.3s ease;
    width: 18px;
    height: 18px;
}

.btn-login:hover svg {
    transform: translateX(4px);
}

/* ===== RODAPÉ ===== */
.login-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    text-align: center;
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .login-banner {
        min-height: 40vh;
    }

    .banner-content {
        padding: 40px 30px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
    }

    .login-wrapper {
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .login-banner {
        min-height: 30vh;
    }

    .banner-content {
        padding: 30px 20px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.875rem;
    }

    .banner-features {
        gap: 10px;
        margin-top: 32px;
    }

    .feature-item {
        padding: 10px 14px;
    }

    .feature-item span {
        font-size: 0.85rem;
    }

    .login-wrapper {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 0.875rem;
    }
}