/* ==========================================================================
   ESTILOS BASE
   ========================================================================== */
body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 15px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 25px;
}

.auth-logo img {
    width: 140px;
    height: auto;
}

.auth-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.auth-card h2 {
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card p {
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ==========================================================================
   FORMULÁRIO
   ========================================================================== */
.input-group-custom {
    margin-bottom: 12px;
}

.input-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease-in-out;
    background: #f8fafc;
    font-size: 15px;
    color: #1e293b;
}

.form-control-custom:focus {
    border-color: #16a34a;
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.senha-wrapper {
    position: relative;
}

.toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
}

/* ==========================================================================
   BOTÃO
   ========================================================================== */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.auth-footer a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
}

.spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 9999;
}

.spinner-grow {
        width: 30px;
        height: 30px;
        background-color: #16a34a;
}

/* Atraso para o efeito de pulso sincronizado */
.spinner-grow:nth-child(2) { animation-delay: 0.2s; }
.spinner-grow:nth-child(3) { animation-delay: 0.4s; }

.modal-content {
    margin: 0 auto;
    max-width: 420px;}

@media (max-width: 1024px) {
    .spinner-grow {
        width: 20px;  /* Metade do seu tamanho original */
        height: 20px;
    }
    .spinner-container {
        gap: 8px;    /* Espaçamento mais curto para telas pequenas */
    }
}