/* ── LOGIN PAGE ──────────────────────────────────────────────────────────── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.login-page {
    display: flex;
    width: 100%;
    height: 100vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ── LADO ESQUERDO - IMAGEM DE FUNDO COM FRASES ──────────────────────────── */

.login-brand {
    flex: 0 0 65%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay escuro para melhorar contraste das frases */
.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Container de frases motivacionais */
.frases-container {
    position: relative;
    z-index: 2;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#frase {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    padding: 20px;
}

#frase.frase-ativa {
    opacity: 1;
}

/* ── LADO DIREITO - LOGIN ────────────────────────────────────────────────── */

.login-container {
    flex: 0 0 35%;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo animado */
.login-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

/* Logo no topo do formulário (AUMENTADO) */
.login-top-logo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: logoEntrada 0.8s ease-out;
}

@keyframes logoEntrada {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-box h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.login-box input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-box input:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.login-box button {
    padding: 12px 15px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.login-box button:active {
    transform: translateY(0);
}

/* ── FLASH MESSAGES ──────────────────────────────────────────────────────── */

.flash-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.flash {
    padding: 12px 15px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

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

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.login-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-brand {
        flex: 0 0 auto;
        min-height: 350px;
    }

    .login-container {
        flex: 0 0 auto;
        padding: 30px 20px;
    }

    #frase {
        font-size: 24px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-box {
        padding: 25px;
    }

    .login-top-logo {
        width: 80px;
        margin: 0 auto 20px;
    }
}

/* ── RESPONSIVO LOGIN ──────────────────────────────────── */

@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        width: 100%;
        height: 200px;
        position: relative;
    }

    .brand-background {
        object-fit: cover;
    }

    .frases-container {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }

    .frases-container h3 {
        font-size: 1.2rem;
    }

    .login-container {
        width: 100%;
        padding: 20px;
        justify-content: flex-start;
    }

    .login-wrapper {
        width: 100%;
        max-width: 380px;
        margin-top: 20px;
    }

    .login-top-logo {
        max-width: 100px;
        margin-bottom: 20px;
    }

    .login-box {
        padding: 25px;
    }

    .login-box h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .login-box input {
        padding: 12px;
        font-size: 1rem;
    }

    .login-box button {
        padding: 12px;
        font-size: 1rem;
    }

    .login-footer {
        font-size: 0.75rem;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .login-brand {
        height: 150px;
    }

    .frases-container h3 {
        font-size: 1rem;
    }

    .login-container {
        padding: 15px;
    }

    .login-top-logo {
        max-width: 80px;
        margin-bottom: 15px;
    }

    .login-box {
        padding: 20px;
    }

    .login-box h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .login-box input,
    .login-box button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .login-footer {
        font-size: 0.7rem;
    }
}