:root {
    --primary-color: #4a354f; /* Verde fosco/sofisticado do Etterniza */
    --primary-hover: #7f528a;
    --text-color: #4a354f;
    --text-light: #666666;
    --bg-color: #f4f6f5;
    --card-bg: #ffffff;
    --border-color: #dddddd;
    --error-color: #d9534f;
    --success-color: #5cb85c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-danger {
    background-color: #fdf2f2;
    color: var(--error-color);
    border: 1px solid #f8baba;
}
.alert-success {
    background-color: #f2fdf2;
    color: var(--success-color);
    border: 1px solid #baf8ba;
}

/* Formulário e Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 6px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #aaa;
    font-size: 16px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 92, 84, 0.1);
}

/* Botão */
.btn-login {
    width: 100%;
    padding: 13px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--primary-hover);
}

/* Rodapé do card */
.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 6px;
}

.login-footer a:hover {
    text-decoration: underline;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    font-size: 13px !important;
    color: #999 !important;
    font-weight: normal !important;
}
.back-home:hover {
    color: var(--primary-color) !important;
}