/**
 * Card de autenticação — [shopee_login]
 *
 * CSS próprio (sem Tailwind) porque o shortcode vive em páginas do tema do
 * cliente. Tudo escopado em .sr-auth-* para não colidir com o tema, e sem
 * !important para o tema ainda conseguir ajustar algo se precisar.
 */

.sr-auth-wrap {
    --sr-primary: #EE4D2D;
    --sr-primary-dark: #D73211;
    --sr-text: #111827;
    --sr-muted: #6b7280;
    --sr-line: #e5e7eb;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    max-width: 448px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

.sr-auth-wrap *,
.sr-auth-wrap *::before,
.sr-auth-wrap *::after { box-sizing: border-box; }

/* ---------- Marca DisparaShop ---------- */
/* Seletores encadeados + !important nas cores: temas costumam pintar
   qualquer <a> e seus descendentes com a cor de link do tema. */
.sr-auth-wrap a.sr-brand,
.sr-auth-wrap a.sr-brand:hover,
.sr-auth-wrap a.sr-brand:focus,
.sr-auth-wrap a.sr-brand:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
    text-decoration: none;
    border: none;
    box-shadow: none;
    background: none;
}

.sr-auth-wrap .sr-brand-mark {
    width: 34px;
    height: 34px;
    min-width: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF7A45 0%, #EE4D2D 100%);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(238, 77, 45, .3);
}

.sr-auth-wrap .sr-brand-mark i { color: #fff !important; }

.sr-auth-wrap .sr-brand-name {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--sr-text) !important;
    line-height: 1;
}

.sr-auth-card {
    position: relative;
    background: #fff;
    border: 1px solid #f1f2f4;
    border-radius: 18px;
    padding: 32px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04),
                0 12px 40px -8px rgba(17, 24, 39, .12);
}

/* Fio laranja no topo do card */
.sr-auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF7A45, var(--sr-primary), #FF7A45);
}

/* ---------- Cabeçalho ---------- */
.sr-auth-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.sr-auth-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF7A45 0%, var(--sr-primary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(238, 77, 45, .25);
}

.sr-auth-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--sr-text);
}

.sr-auth-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--sr-muted);
    word-break: break-word;
}

.sr-auth-text {
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
    margin: 0 0 20px;
}

/* ---------- Alertas ---------- */
.sr-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.sr-auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sr-auth-alert--ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ---------- Formulário ---------- */
.sr-auth-form { margin: 0; }

.sr-field { margin-bottom: 16px; }

.sr-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--sr-muted);
    margin-bottom: 8px;
}

.sr-field input[type="email"],
.sr-field input[type="password"],
.sr-field input[type="text"] {
    width: 100%;
    border: 1px solid var(--sr-line);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--sr-text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.sr-field input::placeholder { color: #9ca3af; }

.sr-field input:focus {
    outline: none;
    border-color: var(--sr-primary);
    box-shadow: 0 0 0 3px rgba(238, 77, 45, .15);
}

.sr-static {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    color: #4b5563;
    word-break: break-all;
}

.sr-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 20px;
    cursor: pointer;
}

.sr-check input { margin: 0; cursor: pointer; }

/* ---------- Botões ---------- */
.sr-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #FF7A45 0%, var(--sr-primary) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px -4px rgba(238, 77, 45, .45);
    transition: filter .15s, transform .15s, box-shadow .15s;
}

.sr-btn:hover,
.sr-btn:focus {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -6px rgba(238, 77, 45, .5);
}

.sr-btn:active { transform: translateY(0); }

.sr-btn--ghost {
    background: #f3f4f6;
    color: var(--sr-text);
    box-shadow: none;
}

.sr-btn--ghost:hover,
.sr-btn--ghost:focus { background: #e5e7eb; color: var(--sr-text); }

.sr-auth-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--sr-muted);
    text-decoration: none;
    margin-top: 16px;
}

.sr-auth-link:hover { color: var(--sr-primary); text-decoration: underline; }

.sr-auth-foot {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin: 18px 0 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .sr-auth-wrap { padding: 16px 12px; }
    .sr-auth-card { padding: 24px 20px; border-radius: 16px; }
    .sr-auth-title { font-size: 18px; }
    .sr-auth-wrap .sr-brand-name { font-size: 18px; }
    .sr-auth-wrap a.sr-brand { margin-bottom: 22px; gap: 12px; }
}
