* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: #e7d8b8;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    max-width: 420px;
    margin: auto;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    overflow: hidden;
}

/* Faixa verde padrão (mesma cor do logo oficial) atrás da marca — o logo
   claro usado aqui é feito pra fundo escuro, não pra ficar direto no branco. */
.logo {
    text-align: center;
    padding: 32px 40px 26px;
    background: linear-gradient(120deg, #0a6f58, #0d5d49 70%);
}

.logo img,
.brand-logo {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

.logo h1 {
    color: #ffffff;
    font-size: 32px;
    letter-spacing: 2px;
}

.logo span {
    font-size: 14px;
    color: #d9f2ea;
}

.login-body {
    padding: 32px 40px 40px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #0a6f58;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #d9b98c;
    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: #0e9c7e;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #0a6f58;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.alert-error {
    background: #fdecea;
    color: #b00020;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.alert-success {
    background: #e7f6ec;
    color: #0a6f58;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

button:hover {
    background: #0e9c7e;
}

button:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.input-senha-wrapper {
    position: relative;
}

.input-senha-wrapper input {
    padding-right: 48px;
}

.btn-mostrar-senha {
    position: absolute;
    right: 2px;
    top: 1px;
    width: auto;
    background: transparent;
    border: none;
    color: #0a6f58;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 8px;
}

.btn-mostrar-senha:hover {
    background: transparent;
    color: #0e9c7e;
    text-decoration: underline;
}

.btn-mostrar-senha:focus-visible {
    outline: 2px solid #0e9c7e;
    outline-offset: 2px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: girar .6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes girar {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 1.5s;
    }
}

.footer {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: #777;
}
