/* ==========================================================================
   LOGIN-MODERNO.CSS — Tela de login (navbar gerenciada por sigitr-modern.css)
   ========================================================================== */

:root {
    --primary-color: #17A2B8;
    --secondary-color: #489A8E;
    --text-dark: #2f353a;
    --text-muted: #73818f;
    --border-light: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ====== BACKGROUND ====== */
.bg-image {
    flex: 1;
    background-image: url('../img/login-bg.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 100%);
    display: flex;
    flex-direction: column;
}

/* ====== ÁREA PRINCIPAL ====== */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* ====== CARD DE LOGIN ====== */
.login-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* ====== CABEÇALHO DO CARD ====== */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.login-header h1 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

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

/* ====== MENSAGENS ====== */
.login-messages {
    margin-bottom: 1.25rem;
}

.login-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.login-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ====== FORMULÁRIO ====== */
.form-group {
    margin-bottom: 1.35rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.12);
}

/* ====== BOTÃO ENTRAR ====== */
.btn-login {
    width: 100%;
    padding: 0.88rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(23, 162, 184, 0.32);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ====== FOOTER ====== */
footer {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    background: rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 480px) {
    .login-container {
        border-radius: 16px;
        padding: 2rem 1.5rem;
    }
    .login-header h1 {
        font-size: 1.5rem;
    }
}
