/* =========================
   Reset e Corpo
========================= */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* =========================
   Login Section
========================= */
.login-section {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* =========================
   Cover
========================= */
.cover {
    width: 50%;
    background: url('imgs/fundo.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}

.cover-content {
    position: relative;
    color: #fff;
    text-align: center;
    z-index: 1;
    padding: 1rem;
}

.cover-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.cover-content p {
    font-size: 1.4rem;
    margin-top: 1rem;
    opacity: 0.9;
}

.cover-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00c9ff;
    animation: float 2s ease-in-out infinite;
}

/* =========================
   Login Form
========================= */
.login-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.95);
    padding: 4rem 3rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    z-index: 2;
    text-align: center;
}

.login-form .container {
    width: 100%;
    max-width: 400px;
    padding: 0;
}

.login-form h2 {
    margin-bottom: 2rem;
    color: #2c5364;
    font-weight: 700;
    font-size: 2.2rem;
}

/* =========================
   Logo
========================= */
.logo-container {
    margin-bottom: 3rem;
    text-align: center;
}

.logo-wrapper {
    background-color: #2c5364;
    padding: 20px 30px;
    border-radius: 12px;
    display: inline-block;
    max-width: 250px;
}

.logo-container img {
    max-height: 200px;
    width: auto;
}

/* =========================
   Inputs e Botões
========================= */
.form-control {
    margin-bottom: 1.2rem;
    border-radius: 0.8rem;
    border: 1px solid #ccc;
}

.login-form button.btn-primary {
    border-radius: 2rem !important;
    background: linear-gradient(90deg, #1e3a8a, #2563eb) !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.7) !important;
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.login-form button.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb, #1e3a8a) !important;
    box-shadow: 0 6px 20px rgba(30,58,138,0.9) !important;
}

/* =========================
   Métodos de recuperação
========================= */
.metodo-recuperacao {
    background-color: #f1f1f1;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s, box-shadow 0.3s;
}

.metodo-recuperacao:hover {
    background-color: #eaeaea;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.metodo-recuperacao input[type="radio"] { display: none; }

.metodo-seta {
    font-size: 22px;
    margin-right: 12px;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    transform: rotate(90deg);
}

.metodo-recuperacao:hover .metodo-seta,
.metodo-recuperacao input[type="radio"]:checked + .metodo-seta {
    transform: rotate(0deg);
    color: #007bff;
}

.metodo-info { flex: 1; }

/* =========================
   Erros
========================= */
.input-error {
    border-color: red !important;
    box-shadow: 0 0 5px red !important;
}

/* =========================
   Animações
========================= */
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================
   Alertas Animados
========================= */
@keyframes slideBounce {
    0% { opacity:0; transform:translateY(-50px); }
    60% { transform:translateY(10px); }
    80% { transform:translateY(-5px); }
    100% { opacity:1; transform:translateY(0); }
}

@keyframes pulseEmoji {
    0%,100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

@keyframes borderGlow {
    0% { box-shadow:0 0 10px 2px rgba(0,255,150,0.5); }
    50% { box-shadow:0 0 20px 4px rgba(0,255,150,0.9); }
    100% { box-shadow:0 0 10px 2px rgba(0,255,150,0.5); }
}

.alert-fancy {
    background: linear-gradient(135deg,#d4fcd7,#e6fff0);
    animation: slideBounce 0.8s ease, borderGlow 2s ease-in-out infinite;
    border:2px solid #28a745;
    border-radius:12px;
    padding:1.5rem;
    font-size:1.1rem;
    box-shadow:0 0 20px rgba(40,167,69,0.3);
}

.alert-fancy .emoji {
    display:inline-block;
    animation: pulseEmoji 1.5s infinite;
    font-size:1.5rem;
    margin-right:8px;
}

.alert-fancy a {
    text-decoration:none;
    color:#155724;
    transition: color 0.3s ease, transform 0.3s ease;
}

.alert-fancy a:hover {
    color:#0b8f4d;
    transform: scale(1.05);
}

/* =========================
   Responsividade
========================= */
@media (max-width: 992px) {
    .login-section {
        flex-direction: column;
    }

    .cover, .login-form {
        width: 100%;
        height: auto;
    }

    .login-form {
        padding: 2rem 1.5rem;
        flex: 1;
    }

    .logo-wrapper {
        max-width: 180px;
        padding: 15px 20px;
    }

    .logo-container img {
        max-height: 140px;
    }

    .cover-content h1 {
        font-size: 2rem;
    }

    .cover-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .cover {
        height: 30vh;       /* Altura limitada para celular */
        min-height: 200px;  /* Tamanho mínimo */
        max-height: 250px;  /* Evita ocupar tela inteira */
    }

    .login-form {
        padding: 2rem 1rem;
    }

    .logo-wrapper {
        max-width: 350px;
        padding: 10px 15px;
    }

    .logo-container img {
        max-height: 100px;
    }

    .cover-content h1 {
        font-size: 1.8rem;
    }

    .cover-content p {
        font-size: 0.9rem;
    }
}
