* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef2f6;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    color: #2f3542;
}

.login-logo {
    text-align: center;
    margin-bottom: 16px;
}

.login-logo img {
    max-width: 160px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

#alerta {
    background: #fdecea;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background: #ffffff;
    color: #0f172a;
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #006BB5;
    box-shadow: 0 0 0 2px rgba(0, 107, 181, 0.18);
    outline: none;
}

/* Espaço para ícones */
.form-group.has-icon input,
.form-group.has-icon select {
    padding-left: 44px;
}

/* Espaço extra quando tem toggle */
.form-group.has-toggle input {
    padding-right: 44px;
}

/* Ícone esquerdo */
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #006BB5;
    pointer-events: none;
    z-index: 2;
}

/* Toggle senha */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #006BB5;
    cursor: pointer;
    z-index: 2;
}

.toggle-password:hover {
    opacity: 0.8;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 22px;
    font-size: 14px;
    color: #374151;
}

.btn-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #006BB5;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-login:hover {
    background: #005A99;
}

.login-copy {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.login-copy a {
    color: #006BB5;
    text-decoration: none;
}

.login-copy a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-box {
        padding: 32px 22px;
    }

}
