/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0b1424;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ===== CONTAINER PRINCIPAL ===== */
.login-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1280px;
    min-height: 720px;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.3s ease;
}

/* ===== LADO ESQUERDO — PAINEL INSTITUCIONAL ===== */
.login-panel {
    flex: 0 0 40%;
    background: linear-gradient(145deg, #0a1628 0%, #142b4a 70%, #1a3a5a 100%);
    position: relative;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Fundo com detalhes tecnológicos */
.login-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 40px,
            rgba(255, 215, 0, 0.02) 40px,
            rgba(255, 215, 0, 0.02) 41px
        );
    pointer-events: none;
}

/* Linhas decorativas */
.login-panel::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.panel-content {
    position: relative;
    z-index: 2;
}

/* Logo */
.logo-area {
    margin-bottom: 2rem;
}

.logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5e7b0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Texto institucional */
.institutional-text {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 1.5rem 0 2.5rem 0;
    max-width: 90%;
    font-weight: 400;
}

/* Lista de benefícios */
.benefits-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benefits-list li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 450;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.benefits-list li:hover {
    transform: translateX(6px);
}

.icon-check {
    color: #e8c84c;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-block;
    width: 1.75rem;
}

/* ===== LADO DIREITO — FORMULÁRIO ===== */
.login-form-wrapper {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 0.5rem 0;
}

.login-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0a1628;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.login-card .subtitle {
    font-size: 1rem;
    color: #5e6f88;
    margin-bottom: 2.25rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== INPUTS ===== */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f9fafc;
    transition: all 0.25s ease;
    color: #0a1628;
    outline: none;
}

.input-group input::placeholder {
    color: #a0b3c9;
    font-weight: 400;
}

.input-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    background: #ffffff;
}

/* ===== OPÇÕES ===== */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 2rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #2d3f57;
    cursor: pointer;
    font-weight: 450;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
    border-radius: 4px;
    border: 1.5px solid #d4af37;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.forgot-password {
    font-size: 0.9rem;
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #b8941e;
    text-decoration: underline;
}

.login-message {
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.09);
    color: #33445a;
    font-size: 0.82rem;
    line-height: 1.45;
}

.login-message.error {
    border-color: rgba(190, 45, 60, 0.25);
    background: rgba(190, 45, 60, 0.08);
    color: #9f1f2c;
}

/* ===== BOTÃO PRINCIPAL ===== */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5a 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.35);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.2);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .login-panel {
        flex: 0 0 38%;
        padding: 2.5rem 2rem;
    }
    .slogan {
        font-size: 1.25rem;
    }
}

@media (max-width: 820px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
        border-radius: 24px;
    }

    .login-panel {
        flex: 1 1 auto;
        padding: 2.5rem 2rem;
        min-height: 300px;
    }

    .login-form-wrapper {
        padding: 2.5rem 1.5rem;
    }

    .login-card {
        max-width: 100%;
        padding: 0;
    }

    .institutional-text {
        max-width: 100%;
    }

    .benefits-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        border-radius: 16px;
    }

    .login-panel {
        padding: 2rem 1.25rem;
        min-height: 240px;
    }

    .logo {
        max-width: 120px;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .institutional-text {
        font-size: 0.9rem;
        margin: 1rem 0 1.5rem 0;
    }

    .benefits-list li {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .login-form-wrapper {
        padding: 2rem 1.25rem;
    }

    .login-card h1 {
        font-size: 1.6rem;
    }

    .login-card .subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }

    .input-group input {
        padding: 0.8rem 0.9rem;
        font-size: 0.95rem;
    }

    .form-options {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .btn-primary {
        padding: 0.9rem;
        font-size: 1rem;
    }
}
