/* ===============================
   LOGIN / CADASTRO — CACS CLUBE
   =============================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #02743D 0%, #078C36 50%, #0aad44 100%);
    padding: 24px 16px;
}

/* wrapper vertical: logo + card */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 420px;
}

/* ---- BRAND ---- */
.login-brand {
    text-align: center;
    color: #fff;
}

.login-logo-img {
    height: 110px;
    width: auto;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.login-brand p {
    font-size: .9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ---- CARD ---- */
.login-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.login-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #02743D;
    margin-bottom: 22px;
    text-align: center;
}

/* ---- GRUPOS ---- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    color: #333;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: .95rem;
    font-family: inherit;
    color: #111;
    transition: border-color .15s, box-shadow .15s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #078C36;
    box-shadow: 0 0 0 3px rgba(7,140,54,0.15);
    background: #fff;
}

/* ---- CAMPO SENHA COM BOTÃO ---- */
.input-pw {
    position: relative;
}

.input-pw input {
    padding-right: 44px;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    padding: 4px;
}

.toggle-pw:hover {
    color: #078C36;
}

/* ---- BOTÃO PRINCIPAL ---- */
.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #02743D, #078C36);
    color: #F2E205;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(7,140,54,0.35);
}

.btn-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(7,140,54,0.45);
}

/* ---- ERRO / SUCESSO ---- */
.login-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: .9rem;
}

.login-sucesso {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 11px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: .9rem;
}

/* ---- LINK RODAPÉ ---- */
.login-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: .88rem;
}

.login-footer-link a {
    color: #078C36;
    font-weight: 700;
    text-decoration: none;
}

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

/* ---- RESPONSIVO ---- */
@media (max-width: 460px) {
    .login-card {
        padding: 28px 20px 22px;
    }
}
