/* =============================================
   AdegaFlow — Login Page
   Paleta: Azul refinado e sofisticado
   ============================================= */

@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════
   PAINEL ESQUERDO
══════════════════════════════════════ */
.login-banner {
    flex: 1;
    background: linear-gradient(160deg, #0a1628 0%, #0d2347 40%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

/* Círculos decorativos */
.login-banner::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    top: -100px; right: -150px;
}

.login-banner::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,179,237,0.08) 0%, transparent 70%);
    bottom: -80px; left: -80px;
}

/* Grade sutil no fundo */
.login-banner-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.banner-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 400px;
}

.banner-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    font-size: 1.5rem;
    color: #93c5fd;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.banner-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}

.banner-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    margin-bottom: 2.5rem;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
}

.feature-icon {
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   PAINEL DIREITO
══════════════════════════════════════ */
.login-form-panel {
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2.5rem;
    border-left: 1px solid #e2e8f0;
}

.login-form-inner {
    width: 100%;
    max-width: 360px;
}

/* Logo mobile */
.mobile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d2347, #1a3a6b);
    color: #93c5fd;
    font-size: 1.4rem;
}

/* Título */
.login-form-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.login-form-inner .login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.75rem;
}

/* Alertas */
.login-alert {
    border-radius: 8px;
    border: none;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Labels */
.login-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

/* Input group */
.login-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input-group:focus-within {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}

.login-input-group .input-icon {
    padding: 0 12px;
    color: #9ca3af;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.login-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 8px;
    font-size: 0.9rem;
    background: transparent;
    color: #0f172a;
}

.login-input-group input::placeholder { color: #9ca3af; }

.login-input-group .toggle-btn {
    background: none;
    border: none;
    padding: 0 12px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.login-input-group .toggle-btn:hover { color: #374151; }

/* Botão entrar */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0d2347 0%, #1a3a6b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover  { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-login:active { transform: translateY(0); }

/* Divisor esqueci senha */
.login-forgot {
    font-size: 0.8rem;
    color: #1a3a6b;
    text-decoration: none;
    font-weight: 500;
}
.login-forgot:hover { text-decoration: underline; }

/* Footer */
.login-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2rem;
}

/* ══════════════════════════════════════
   RESPONSIVIDADE
══════════════════════════════════════ */
@media (max-width: 991.98px) {
    .login-wrapper {
        background: linear-gradient(160deg, #0a1628 0%, #0d2347 40%, #1a3a6b 100%);
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }
    .login-form-panel {
        max-width: 440px;
        border-radius: 20px;
        padding: 2.5rem 2rem;
        box-shadow: 0 25px 50px rgba(0,0,0,0.35);
        border: none;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper { padding: 1rem; align-items: flex-start; padding-top: 2rem; }
    .login-form-panel { max-width: 100%; border-radius: 16px; padding: 2rem 1.5rem; }
}
