/**
 * Login CSS - Sistema FortVigas
 * Multiplica Digital - https://multiplicadigital.com.br
 */

/* ──────── CONTAINER PRINCIPAL ──────── */
#auth {
    min-width: 100%;
    min-height: 100svh;
    background: #f0f2f5;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ──────── CARD DE LOGIN ──────── */
#auth-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    width: 90%;
    max-width: 420px;
    padding: 48px 40px;
    box-sizing: border-box;
}

/* ──────── LOGO ──────── */
#logo {
    width: 220px;
    margin-bottom: 24px;
}

/* ──────── TÍTULO ──────── */
#titulo {
    display: none; /* Ocultar título, usar apenas logo */
}

/* ──────── DESCRIÇÃO ──────── */
#descricao {
    font-size: 0.95rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
}

/* ──────── CONTAINER DO FORMULÁRIO ──────── */
#form-container {
    width: 100%;
}

/* ──────── LABELS E INPUTS ──────── */
#form-container label {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    text-transform: none;
}

#form-container label:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#form-container label input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 4px 0 0 0;
    width: 100%;
}

#form-container label input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ──────── ÍCONES NOS INPUTS ──────── */
#form-container label img {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
    cursor: pointer;
}

#form-container label img.ver-senha:hover {
    opacity: 0.8;
}

/* ──────── INDICADOR DE ERRO ──────── */
#form-container label::after {
    content: '';
    position: absolute;
    right: 44px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    opacity: 0;
}

#form-container label:has(input:invalid:not(:placeholder-shown))::after {
    opacity: 1;
}

/* ──────── LINK RECUPERAR CONTA ──────── */
#form-container a {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

#form-container a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ──────── BOTÃO PRINCIPAL ──────── */
#form-container .btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    margin-top: 8px;
}

#form-container .btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

#form-container .btn:active {
    transform: translateY(0);
}

/* ──────── LINK REGISTRAR-SE ──────── */
#form-login > a:last-child,
#form-registro > a:last-child,
#recuperacao-container > a:last-child {
    text-align: center;
    margin-top: 16px;
}

/* ──────── FORMULÁRIOS OCULTOS ──────── */
#form-login, #form-registro, #form-recuperacao, #recuperacao-container {
    display: none;
}

#form-login.ativo, 
#form-registro.ativo, 
#form-recuperacao.ativo, 
#recuperacao-container.ativo {
    display: flex;
}

/* ──────── MENSAGENS ──────── */
#mensagem:empty, 
#form-mensagem:empty,
#form-resposta:empty {
    display: none;
}

#form-resposta {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ──────── TERMOS DE USO (se descomentar) ──────── */
#form-container .texto-centro {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 24px;
}

/* ──────── RESPONSIVO ──────── */
@media (max-width: 480px) {
    #auth-container {
        padding: 32px 24px;
        border-radius: 16px;
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    #logo {
        width: 180px;
    }
    
    #form-container .btn {
        padding: 14px 20px;
    }
}