/* ============================================
   LinkPage — Auth CSS v1.1.2
   Kamipress Design & Comunicação
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.lp-auth-root {
    max-width: 480px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 15px;
    color: #1a1d2e;
}

/* ── Abas ── */
.lp-auth-tabs {
    display: flex;
    background: #f3f4f8;
    border-radius: 14px 14px 0 0;
    padding: 6px;
    gap: 4px;
}
.lp-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.lp-auth-tab.active {
    background: #fff;
    color: #1a1d2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── Panels ── */
.lp-auth-panel {
    display: none;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}
.lp-auth-panel.active { display: block; }

.lp-auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 32px 28px;
    text-align: center;
    color: #fff;
}
.lp-auth-emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; line-height: 1; }
.lp-auth-header h2 { font-size: 1.45rem; font-weight: 700; margin: 0 0 6px; color: #fff; }
.lp-auth-header p  { font-size: 0.88rem; color: rgba(255,255,255,0.82); margin: 0; }

.lp-auth-form { padding: 28px 32px 24px; display: flex; flex-direction: column; gap: 18px; }

/* ── Campos ── */
.lp-af-field { display: flex; flex-direction: column; gap: 7px; }
.lp-af-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-af-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lp-af-icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}
.lp-af-input-wrap input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1a1d2e;
    background: #fafafa;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-family: inherit;
}
.lp-af-input-wrap input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}
.lp-af-input-wrap input::placeholder { color: #c4c9d4; }

.lp-af-toggle-pass {
    position: absolute; right: 12px;
    background: none; border: none; color: #9ca3af;
    cursor: pointer; font-size: 0.9rem; padding: 4px;
    transition: color .2s;
}
.lp-af-toggle-pass:hover { color: #667eea; }

.lp-af-check-icon {
    position: absolute; right: 38px;
    font-size: 0.88rem; font-weight: 700;
    pointer-events: none;
}
.lp-icon-ok { color: #22c55e; }
.lp-icon-err { color: #ef4444; }

.lp-af-hint    { font-size: 0.75rem; color: #9ca3af; }
.lp-af-feedback { font-size: 0.78rem; font-weight: 500; min-height: 18px; }
.lp-feedback-ok  { color: #22c55e; }
.lp-feedback-err { color: #ef4444; }

/* Slug preview */
.lp-slug-preview {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.lp-slug-preview:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
    background: #fff;
}
.lp-slug-domain {
    padding: 12px 0 12px 14px;
    color: #9ca3af;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lp-slug-preview input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 42px 12px 0 !important;
    font-weight: 700;
    color: #667eea !important;
    min-width: 0;
}

/* Sugestões de slug */
.lp-slug-suggestions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-suggestions-label { font-size: 0.75rem; color: #9ca3af; white-space: nowrap; }
.lp-suggestions-list  { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-suggestion-tag {
    padding: 4px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    font-size: 0.78rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.lp-suggestion-tag:hover {
    border-color: #667eea;
    background: #eef2ff;
    color: #667eea;
}

/* ── Steps ── */
.lp-auth-steps {
    display: flex;
    align-items: center;
    padding: 20px 32px 0;
    gap: 0;
}
.lp-auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.lp-step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.lp-step-label { font-size: 0.68rem; color: #9ca3af; font-weight: 500; transition: color .3s; }
.lp-auth-step.active .lp-step-num  { background: #667eea; color: #fff; box-shadow: 0 0 0 4px rgba(102,126,234,0.2); }
.lp-auth-step.active .lp-step-label { color: #667eea; }
.lp-auth-step.done .lp-step-num   { background: #22c55e; color: #fff; }
.lp-auth-step.done .lp-step-num::after { content: '✓'; }
.lp-auth-step.done .lp-step-num > * { display: none; }
.lp-auth-step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 6px 18px; transition: background .3s; }

/* Step panels */
.lp-auth-step-panel { display: none; }
.lp-auth-step-panel.active { display: flex; flex-direction: column; gap: 18px; }

/* ── Força de senha ── */
.lp-pass-strength { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.lp-pass-bar { flex: 1; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.lp-pass-bar-fill { height: 100%; width: 0; border-radius: 3px; transition: width .3s, background .3s; }
.lp-pass-label { font-size: 0.75rem; font-weight: 600; min-width: 60px; }

.lp-pass-rules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-rule { font-size: 0.78rem; color: #9ca3af; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.lp-rule i { font-size: 0.65rem; }
.lp-rule-ok { color: #22c55e; }

/* ── Submit ── */
.lp-af-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(102,126,234,0.35);
}
.lp-af-submit:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102,126,234,0.4); }
.lp-af-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.lp-af-submit-flex { flex: 1; width: auto; }

.lp-af-btn-row { display: flex; gap: 10px; align-items: center; }
.lp-af-btn-back {
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all .2s;
    flex-shrink: 0;
}
.lp-af-btn-back:hover { border-color: #667eea; color: #667eea; }

/* ── Checkbox ── */
.lp-af-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #374151;
    cursor: pointer;
    line-height: 1.5;
}
.lp-af-check input[type=checkbox] {
    width: 18px; height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #667eea;
}
.lp-terms-check a { color: #667eea; text-decoration: underline; }

/* ── Error / Success ── */
.lp-af-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #dc2626;
    font-weight: 500;
}
.lp-af-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #16a34a;
    font-weight: 500;
    min-height: 20px;
}

/* ── Rodapé ── */
.lp-auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    padding: 0 32px 24px;
}
.lp-auth-switch button {
    background: none; border: none;
    color: #667eea; font-weight: 600;
    cursor: pointer; font-size: inherit;
    font-family: inherit; padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.lp-forgot-link {
    background: none; border: none;
    color: #667eea; font-size: 0.78rem;
    font-weight: 500; cursor: pointer;
    font-family: inherit; padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Logado ── */
.lp-auth-logged {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
}
.lp-auth-logged-avatar { flex-shrink: 0; }
.lp-auth-logged-avatar img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}
.lp-auth-logged-initials {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.lp-auth-logged-info { flex: 1; min-width: 0; }
.lp-auth-logged-info strong { display: block; font-size: 1rem; color: #1a1d2e; }
.lp-auth-logged-info a { font-size: 0.78rem; color: #667eea; text-decoration: none; word-break: break-all; }
.lp-auth-logged-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-auth-btn-primary {
    padding: 9px 16px;
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: #fff; border-radius: 8px;
    text-decoration: none; font-size: 0.84rem; font-weight: 600;
    white-space: nowrap; transition: opacity .2s;
}
.lp-auth-btn-primary:hover { opacity: 0.88; }
.lp-auth-btn-secondary {
    padding: 9px 16px;
    background: #f3f4f8; color: #374151;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    text-decoration: none; font-size: 0.84rem; font-weight: 600;
    white-space: nowrap; transition: all .2s;
}
.lp-auth-btn-secondary:hover { border-color: #667eea; color: #667eea; }
.lp-auth-btn-ghost {
    padding: 9px 14px;
    background: none; color: #9ca3af;
    border: none; border-radius: 8px;
    text-decoration: none; font-size: 0.82rem;
    white-space: nowrap; transition: color .2s;
    cursor: pointer;
}
.lp-auth-btn-ghost:hover { color: #ef4444; }

@media (max-width: 520px) {
    .lp-auth-form   { padding: 20px 18px 16px; }
    .lp-auth-header { padding: 24px 18px 20px; }
    .lp-auth-switch { padding: 0 18px 18px; }
    .lp-auth-steps  { padding: 16px 18px 0; }
    .lp-slug-domain { max-width: 120px; font-size: 0.73rem; }
    .lp-auth-logged { flex-direction: column; align-items: flex-start; }
}
