body {
    background-color: var(--body-color, #f4f7fa);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Nanum Gothic", sans-serif;
    color: #333;
}

/* --- Header e Logo --- */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo {
    width: 60px;
    margin-bottom: 15px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin: 0;
}

/* --- Box Principal --- */
.login-box {
    background-color: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 40px 30px; /* Mais padding interno */
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* --- Inputs Estilo Linha (Underline) --- */
.form-group {
    /* Espaçamento maior entre os inputs solicitado */
    margin-bottom: 35px; 
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase; /* Estilo mais moderno para labels de linha */
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px 5px; /* Padding leve para o texto não colar na esquerda */
    font-size: 16px; /* Fonte um pouco maior */
    line-height: 24px;
    color: #333;
    background-color: transparent;
    
    /* A Mágica da Linha: */
    border: none;
    border-bottom: 2px solid #ddd; /* Linha cinza inicial */
    border-radius: 0;
    
    outline: none;
    transition: border-color 0.3s ease;
    font-family: "Nanum Gothic", sans-serif;
}

.form-input::placeholder {
    color: #bbb;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Foco: Linha fica Roxa */
.form-input:focus {
    border-bottom-color: var(--primary-color);
}

/* --- Feedback Visual (Valid/Invalid) na Linha --- */
.form-input.valid {
    border-bottom-color: #2ea44f; /* Verde */
    /* Ícone de check no canto direito */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%232ea44f" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right center;
}

.form-input.invalid {
    border-bottom-color: #cb2431; /* Vermelho */
}

/* --- Lista de Requisitos de Senha --- */
.password-requirements {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
    display: none; 
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
}
.password-requirements.show {
    display: block;
}
.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    transition: color 0.3s;
}
.req-item i {
    font-size: 14px;
}
.req-item.met {
    color: #2ea44f; /* Verde */
    font-weight: 600;
}
.req-item.unmet {
    color: #999;
}

/* --- Botões --- */
.btn-submit {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.1s;
    margin-top: 10px;
}

.btn-submit:hover {
    opacity: 0.9;
}
.btn-submit:active {
    transform: scale(0.98);
}

.back-home {
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}
.back-home:hover {
    color: var(--primary-color);
}

/* --- Alertas --- */
.alert {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}
.alert-danger {
    color: #842029;
    background-color: #f8d7da;
}
.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
}