@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Reset e Fontes */
body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: #f8fafc;
}

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

/* Lado Esquerdo - Painel Visual RH */
.login-side-image {
    flex: 1.3;
    background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.login-side-image .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(13, 37, 92, 0.96) 0%, rgba(50, 122, 217, 0.85) 100%);
}

.side-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
}

.side-logo {
    max-width: 160px;
    filter: brightness(0) invert(1);
}

/* Lado Direito - Formulário */
.login-side-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.card-login {
    width: 100%;
    max-width: 420px;
}

.icon-circle {
    width: 54px;
    height: 54px;
    background-color: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #0d255c;
}

/* Container do input com ícone — a borda fica no wrapper */
.input-with-icon {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
    width: 100%;
}

.input-with-icon:focus-within {
    border-color: #327AD9;
    box-shadow: 0 0 0 4px rgba(50, 122, 217, 0.1);
}

/* Ícone da esquerda */
.input-with-icon > i:first-child {
    flex-shrink: 0;
    padding: 0 0 0 14px;
    color: #64748b;
    font-size: .95rem;
    pointer-events: none;
}

/* Input sem borda própria — herda do wrapper */
.custom-input {
    flex: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.82rem 0.75rem 0.82rem 0.6rem !important;
    font-size: 0.95rem;
    background: transparent;
    min-width: 0;
}

.custom-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Botão olhinho — dentro do wrapper, sem borda */
.btn-toggle-password {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color .15s;
}

.btn-toggle-password:hover { color: #327AD9; }
.btn-toggle-password:focus { outline: none; }
.btn-toggle-password i { font-size: 1rem; }
.btn-toggle-password.active { color: #0d255c; }

/* Botão Principal */
.btn-primary-custom {
    background-color: #0d255c;
    border: none;
    color: white;
    border-radius: 10px;
    padding: 14px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(13, 37, 92, 0.2);
}

/* Mensagens de Alerta */
.alert-danger-custom {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    border-radius: 10px;
    padding: 12px;
}

.extra-small {
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* Ajustes para Dispositivos Móveis */
@media (max-width: 992px) {
    .login-side-form {
        padding: 24px 20px;
    }
    .card-login {
        max-width: 100%;
    }
}

/* Garante que o card-login tenha padding interno consistente */
.card-login .card-body {
    padding: 2rem 2.25rem !important;
}

/* Corrige o input quando não há ícone de olho (campos sem toggle) */
.input-with-icon input:only-child {
    padding-right: 1rem !important;
}

/* Erros de campo do allauth */
.errorlist {
    list-style: none;
    padding: 0;
    margin: .3rem 0 0;
    font-size: .78rem;
    color: #9f1239;
}
.errorlist li::before {
    content: "⚠ ";
}