/* ============================================================
   auth.css — Sign in / Sign up / Dashboard
   Brand identity: SEO Software AI
   ============================================================ */

.auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 60px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e6ebe8;
    border-radius: 20px;
    padding: 34px 30px 26px;
    box-shadow: 0 8px 40px rgba(16, 32, 25, 0.07);
}

.auth-card--wide { max-width: 760px; }

.auth-card__brand { text-align: center; margin-bottom: 22px; }
.auth-card__logo  { height: 40px; width: auto; }

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: #14201b;
}

.auth-card__sub {
    font-size: 0.9rem;
    color: #5c6b64;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 24px;
}

/* ---------- Google button ---------- */
.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border: 1px solid #dfe5e2;
    border-radius: 12px;
    background: #fff;
    color: #14201b;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease;
}
.auth-google:hover {
    background: #f6f9f8;
    border-color: #0a6e4c;
    color: #14201b;
}

/* ---------- Divider ---------- */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #93a09a;
    font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6ebe8;
}

/* ---------- Form ---------- */
.auth-field { margin-bottom: 16px; }

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 650;
    color: #5c6b64;
    margin-bottom: 6px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-link-sm {
    font-size: 0.78rem;
    color: #0a6e4c;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe5e2;
    border-radius: 11px;
    font-size: 0.95rem;
    color: #14201b;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
    direction: ltr;
    text-align: left;
}
.auth-input:focus {
    outline: none;
    border-color: #14b879;
    box-shadow: 0 0 0 3px rgba(20, 184, 121, .14);
}

.auth-hint {
    display: block;
    font-size: 0.72rem;
    color: #93a09a;
    margin-top: 5px;
    line-height: 1.5;
}

.auth-input-wrap { position: relative; }

.auth-eye {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #93a09a;
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: #0a6e4c;
    color: #fff;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    margin-top: 6px;
    transition: background .18s ease;
}
.auth-submit:hover { background: #085a3e; }

.auth-alt {
    text-align: center;
    font-size: 0.88rem;
    color: #5c6b64;
    margin-top: 18px;
}
.auth-alt a {
    color: #0a6e4c;
    font-weight: 650;
    text-decoration: none;
}

/* ---------- Checkbox ---------- */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
    cursor: pointer;
}
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }

.auth-check__box {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1.8px solid #dfe5e2;
    background: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin-top: 1px;
    transition: all .18s ease;
}
.auth-check__box svg { color: #fff; opacity: 0; transform: scale(.6); transition: all .18s ease; }
.auth-check input:checked + .auth-check__box { background: #0a6e4c; border-color: #0a6e4c; }
.auth-check input:checked + .auth-check__box svg { opacity: 1; transform: none; }

.auth-check__text {
    font-size: 0.8rem;
    color: #5c6b64;
    line-height: 1.55;
}
.auth-check__text a {
    color: #0a6e4c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Trust / legal ---------- */
.auth-legal {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f0;
}

.auth-legal__consent {
    font-size: 0.78rem;
    color: #6b7772;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 16px;
}
.auth-legal__consent a {
    color: #0a6e4c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f4f9f7;
    border: 1px solid #e2efe9;
    border-radius: 12px;
    padding: 13px 14px;
    margin-bottom: 14px;
}

.auth-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #3d4c46;
    font-weight: 550;
}
.auth-trust__item svg { color: #0a6e4c; flex: 0 0 auto; }

.auth-disclaimer {
    font-size: 0.73rem;
    color: #8a958f;
    line-height: 1.65;
    text-align: center;
    margin-bottom: 14px;
}

.auth-legal__links {
    text-align: center;
    font-size: 0.75rem;
    color: #b3bdb8;
}
.auth-legal__links a {
    color: #6b7772;
    text-decoration: none;
    font-weight: 550;
}
.auth-legal__links a:hover { color: #0a6e4c; }
.auth-legal__links span { margin: 0 6px; }

/* ============================================================
   Dashboard
   ============================================================ */

.dash-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(140deg, #0a6e4c, #14b879);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.dash-name {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: #14201b;
    direction: ltr;
    display: inline-block;
}

.dash-email {
    font-size: 0.85rem;
    color: #5c6b64;
    direction: ltr;
    display: inline-block;
}

.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 20px;
    margin-inline-start: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dash-badge--free { background: #eef2f0; color: #6b7772; }
.dash-badge--pro  { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.dash-stat {
    background: #fff;
    border: 1px solid #e6ebe8;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
}
.dash-stat__val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a6e4c;
    letter-spacing: -0.02em;
}
.dash-stat__label {
    font-size: 0.74rem;
    color: #93a09a;
    font-weight: 600;
    margin-top: 3px;
}

.dash-section {
    background: #fff;
    border: 1px solid #e6ebe8;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
}
.dash-section__title {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 4px;
    color: #14201b;
}
.dash-section__sub {
    font-size: 0.83rem;
    color: #5c6b64;
    line-height: 1.55;
    margin-bottom: 16px;
}

.dash-radio {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #e6ebe8;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.dash-radio:has(input:checked) { border-color: #0a6e4c; background: #f4f9f7; }
.dash-radio input { position: absolute; opacity: 0; pointer-events: none; }

.dash-radio__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dfe5e2;
    flex: 0 0 auto;
    margin-top: 2px;
    position: relative;
    transition: border-color .18s ease;
}
.dash-radio input:checked + .dash-radio__dot { border-color: #0a6e4c; }
.dash-radio input:checked + .dash-radio__dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0a6e4c;
}

.dash-radio__title { font-size: 0.88rem; font-weight: 650; color: #14201b; }
.dash-radio__desc  { font-size: 0.76rem; color: #8a958f; line-height: 1.5; margin-top: 2px; }

.dash-btn {
    padding: 11px 20px;
    border: none;
    border-radius: 11px;
    background: #0a6e4c;
    color: #fff;
    font-weight: 650;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.dash-btn:hover { background: #085a3e; color: #fff; }
.dash-btn--ghost { background: #eef2f0; color: #5c6b64; }
.dash-btn--ghost:hover { background: #e3e9e6; color: #14201b; }
.dash-btn--danger { background: #fee2e2; color: #b91c1c; }
.dash-btn--danger:hover { background: #fecaca; color: #991b1b; }

.dash-danger {
    border-color: #fecaca;
    background: #fffbfb;
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px 22px; border-radius: 16px; }
    .auth-card__title { font-size: 1.32rem; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
}
