/* ==========================================================================
   Auth pages - layout e overrides compartilhados (login, signup,
   forgot-password, reset-password). Complementa estiloAdmin.min.css.
   ========================================================================== */

body.auth-body {
    margin: 0;
    min-height: 100vh;
    background-color: #FCFCFC;
    font-family: 'Urbanist', sans-serif;
    color: #343330;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background-color: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(78, 71, 234, 0.06);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.auth-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #343330;
}

.auth-subtitle {
    margin: -16px 0 0 0;
    text-align: center;
    color: #878DA8;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #343330;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4E47EA;
    cursor: pointer;
    margin: 0;
}

.link-lavanda {
    color: #4E47EA;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-lavanda:hover {
    color: #352EC9;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
}

.auth-footer-text {
    margin: 0;
    text-align: center;
    color: #878DA8;
    font-size: 14px;
}

/* Forca placeholder cinza claro mesmo com Bootstrap carregado */
.input-wrapper .form-control::placeholder { color: #C6C9D7 !important; opacity: 1; }
.input-wrapper .form-control::-webkit-input-placeholder { color: #C6C9D7 !important; }
.input-wrapper .form-control:-ms-input-placeholder { color: #C6C9D7 !important; }
.input-wrapper .form-control::-ms-input-placeholder { color: #C6C9D7 !important; }

/* Garante posicionamento do icone do olho (toggle de senha) */
.input-wrapper.right-icon { position: relative; }
.input-wrapper.right-icon .right-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
}

.toggle-password {
    cursor: pointer;
    color: #878DA8;
    transition: color 0.2s ease;
    pointer-events: auto !important;
}

.toggle-password:hover {
    color: #4E47EA;
}

/* Validacoes por campo (signup, reset-password) */
.field-error {
    display: block;
    margin-top: 6px;
    color: #D14343;
    font-size: 12px;
    line-height: 1.4;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #878DA8;
    font-size: 12px;
    line-height: 1.4;
}

.input-wrapper .form-control.input-error {
    border-color: #D14343;
    background-color: #FFF5F5;
}

/* Alerts dinamicos */
.alerta {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    border-left: 4px solid;
}

.alerta--verde {
    background-color: #E8F8E9;
    border-color: #48DB51;
    color: #1F6B25;
}

.alerta--ambar {
    background-color: #FFF4E5;
    border-color: #F5A524;
    color: #8A4F00;
}

/* Caixa de reenvio de verificacao */
.resend-verification {
    padding: 16px;
    background-color: #F9F9F9;
    border-radius: 8px;
}

.resend-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #343330;
}

.resend-inline {
    display: flex;
    gap: 8px;
}

.resend-inline .input-wrapper {
    flex: 1;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #4E47EA;
    color: #4E47EA;
}

.btn-outline:hover {
    background-color: #4E47EA;
    color: #FFFFFF;
}

/* Footer auth (sobrescreve para light theme) */
.powered-by {
    margin: 0;
    text-align: center;
    color: #878DA8;
    font-size: 12px;
}

.powered-by a {
    color: #4E47EA;
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 6px;
    color: #C6C9D7;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }
}

/* ==========================================================================
   Paginas Legais (privacy, terms)
   ========================================================================== */

.legal-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: 'Urbanist', sans-serif;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.legal-header .auth-logo {
    height: 48px;
}

.legal-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4E47EA;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-back a:hover {
    color: #352EC9;
    text-decoration: underline;
}

.legal-card {
    background-color: #FFFFFF;
    border: 1px solid #EDEDED;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(78, 71, 234, 0.04);
    padding: 40px;
    color: #343330;
}

.legal-title {
    margin: 0 0 4px 0;
    font-size: 28px;
    font-weight: 700;
    color: #343330;
}

.legal-subtitle {
    margin: 0 0 24px 0;
    color: #878DA8;
    font-size: 14px;
}

.legal-text {
    font-size: 15px;
    line-height: 1.7;
    color: #343330;
}

.legal-text p {
    margin: 0 0 16px 0;
}

.legal-section-title {
    margin: 32px 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #343330;
}

.legal-text ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.legal-text ul li {
    margin-bottom: 8px;
}

.legal-text strong {
    color: #343330;
    font-weight: 600;
}

.legal-text a {
    color: #4E47EA;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-text a:hover {
    color: #352EC9;
    text-decoration: underline;
}

/* Invite info box (tela publica de aceite de convite) */
.invite-info {
    background-color: rgba(78, 71, 234, 0.06);
    border: 1px solid rgba(78, 71, 234, 0.2);
    border-radius: 8px;
    padding: 16px;
}

.invite-info-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4E47EA;
    margin-bottom: 8px;
}

.invite-info-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #343330;
}

.invite-info-text strong {
    color: #343330;
    font-weight: 600;
}

.invite-role-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(78, 71, 234, 0.12);
    color: #4E47EA;
}

.invite-confirm-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #343330;
    text-align: center;
}

@media (max-width: 480px) {
    .legal-card {
        padding: 24px;
    }

    .legal-title {
        font-size: 24px;
    }

    .legal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
