﻿/**
 * DECOPA - AUTENTICAÇÃO (olho de senha + recuperação de senha)
 * Arquivo: Shared/Styles/decopa-auth.css
 * Carregar DEPOIS de custom.css e link.sales.representative.css (ver header.template).
 * Paleta/tipografia idênticas ao login do representante:
 *   #927B69 bronze | #ebd9c8 borda | #fdfbf9 campo | #2b1f1a título | #7d726b texto
 */

/* ---------- Olho de senha (ver/ocultar) ---------- */
.decopa-pw-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Vence custom.css (padding/margin) e o login do representante (!important) */
html body .decopa-pw-wrap > input.decopa-pw-input,
html body .decopa-pw-wrap > input.decopa-pw-input[type="password"],
html body .decopa-pw-wrap > input.decopa-pw-input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-right: 50px !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis;
}

/* Esconde o revelador nativo do Edge/IE para não duplicar o ícone */
.decopa-pw-wrap > input::-ms-reveal,
.decopa-pw-wrap > input::-ms-clear {
    display: none !important;
}

html body .decopa-pw-wrap > button.decopa-pw-toggle,
html body .sales-representative-login-form .decopa-pw-wrap > button.decopa-pw-toggle,
html body .wd-profile-login .decopa-pw-wrap > button.decopa-pw-toggle {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 46px !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
    transform: none !important;
    color: #927B69 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 3 !important;
    -webkit-tap-highlight-color: transparent;
}

html body .decopa-pw-wrap > button.decopa-pw-toggle:hover,
html body .sales-representative-login-form .decopa-pw-wrap > button.decopa-pw-toggle:hover,
html body .wd-profile-login .decopa-pw-wrap > button.decopa-pw-toggle:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    color: #7a6655 !important;
}

html body .decopa-pw-wrap > button.decopa-pw-toggle:focus-visible {
    outline: 2px solid #927B69 !important;
    outline-offset: -3px !important;
}

html body .decopa-pw-wrap > button.decopa-pw-toggle.is-visible {
    color: #2b1f1a !important;
}

.decopa-pw-toggle svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    pointer-events: none;
}

/* ---------- Páginas de recuperação / redefinição de senha ---------- */
.decopa-auth-shell {
    width: 100% !important;
    min-height: calc(80vh - 120px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    font-family: 'Gotham', Arial, sans-serif !important;
}

.decopa-auth-card {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 44px 38px !important;
    background: #ffffff !important;
    border: 1px solid #ebd9c8 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 36px rgba(146, 123, 105, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
}

.decopa-auth-header {
    text-align: center !important;
    margin-bottom: 28px !important;
}

.decopa-auth-badge {
    display: inline-block !important;
    margin-bottom: 12px !important;
    padding: 5px 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #927B69 !important;
    background: #fdfbf9 !important;
    border: 1px solid #ebd9c8 !important;
    border-radius: 20px !important;
}

.decopa-auth-card h1.decopa-auth-title {
    margin: 0 0 10px 0 !important;
    font-family: 'Contralto Big', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    color: #2b1f1a !important;
    text-align: center !important;
}

.decopa-auth-subtitle {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #7d726b !important;
}

.decopa-auth-hide {
    display: none !important;
}

/* Formulário nativo Linx dentro do card */
form.decopa-auth-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    float: none !important;
}

form.decopa-auth-form .row,
form.decopa-auth-form .column,
form.decopa-auth-form [class*="desktop-"],
form.decopa-auth-form [class*="mobile-"],
form.decopa-auth-form [class*="tablet-"] {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

form.decopa-auth-form label {
    display: block !important;
    margin: 0 0 6px 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    color: #4a3e39 !important;
}

form.decopa-auth-form input[type="text"],
form.decopa-auth-form input[type="email"],
form.decopa-auth-form input[type="password"],
form.decopa-auth-form input[type="tel"] {
    width: 100% !important;
    height: 48px !important;
    margin: 0 0 12px 0 !important;
    padding: 0 16px !important;
    font-family: 'Gotham', Arial, sans-serif !important;
    font-size: 14px !important;
    color: #2b1f1a !important;
    background: #fdfbf9 !important;
    border: 1px solid #ebd9c8 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

form.decopa-auth-form input:focus {
    background: #ffffff !important;
    border-color: #927B69 !important;
    box-shadow: 0 0 0 3px rgba(146, 123, 105, 0.15) !important;
}

form.decopa-auth-form .field-validation-error,
form.decopa-auth-form .validation-summary-errors,
form.decopa-auth-form .error,
form.decopa-auth-form .alert-danger {
    display: block !important;
    margin: -4px 0 12px 0 !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    color: #9b1c1c !important;
    background: transparent !important;
    border: 0 !important;
}

form.decopa-auth-form .validation-summary-errors,
form.decopa-auth-form .alert-danger {
    padding: 12px 16px !important;
    background: #fdf2f2 !important;
    border: 1px solid #f8b4b4 !important;
    border-radius: 8px !important;
}

form.decopa-auth-form .validation-summary-errors ul {
    margin: 6px 0 0 18px !important;
    padding: 0 !important;
}

form.decopa-auth-form .alert-success,
form.decopa-auth-form .success,
form.decopa-auth-form .message-success {
    margin: 0 0 14px 0 !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #1e6b3a !important;
    background: #f1faf4 !important;
    border: 1px solid #b7e1c5 !important;
    border-radius: 8px !important;
}

form.decopa-auth-form button[type="submit"],
form.decopa-auth-form input[type="submit"] {
    width: 100% !important;
    height: 50px !important;
    margin: 8px 0 0 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Gotham', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: #927B69 !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(146, 123, 105, 0.25) !important;
    cursor: pointer !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

form.decopa-auth-form button[type="submit"]:hover,
form.decopa-auth-form input[type="submit"]:hover {
    background: #7a6655 !important;
    box-shadow: 0 6px 18px rgba(122, 102, 85, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Links soltos dentro do formulário (ex.: "voltar") ficam discretos */
form.decopa-auth-form a {
    color: #927B69 !important;
    font-size: 13px !important;
    text-decoration: underline !important;
}

.decopa-auth-footer {
    margin-top: 28px !important;
    padding-top: 22px !important;
    text-align: center !important;
    border-top: 1px solid #ebd9c8 !important;
}

.decopa-auth-footer a.decopa-auth-back {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #7d726b !important;
    text-decoration: none !important;
}

.decopa-auth-footer a.decopa-auth-back:hover {
    color: #927B69 !important;
    text-decoration: underline !important;
}

@media (max-width: 600px) {
    .decopa-auth-shell {
        padding: 24px 15px !important;
    }
    .decopa-auth-card {
        padding: 30px 20px !important;
        border-radius: 10px !important;
    }
    .decopa-auth-card h1.decopa-auth-title {
        font-size: 26px !important;
    }
}
