:root {
    --cse-auth-ink: #182230;
    --cse-auth-muted: #657386;
    --cse-auth-border: #dbe3ed;
    --cse-auth-brand: #315cf5;
    --cse-auth-brand-dark: #2548cb;
    --cse-auth-surface: #ffffff;
    --cse-auth-soft: #f4f7fb;
    --cse-auth-radius: 18px;
}

body.cse-auth-page .entry-title,
body.cse-auth-page .page-title {
    display: none !important;
}

.cse-auth,
.cse-account {
    box-sizing: border-box;
    width: min(100% - 32px, 480px);
    margin: clamp(28px, 7vh, 76px) auto;
    padding: clamp(24px, 6vw, 42px);
    color: var(--cse-auth-ink);
    background: var(--cse-auth-surface);
    border: 1px solid var(--cse-auth-border);
    border-radius: var(--cse-auth-radius);
    box-shadow: 0 20px 60px rgba(28, 47, 77, .10);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.cse-auth form { margin: 0; }

.cse-auth__heading { margin-bottom: 28px; }
.cse-auth__eyebrow {
    display: inline-block;
    color: var(--cse-auth-brand);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .11em;
    line-height: 1.4;
    text-transform: uppercase;
}
.cse-auth__heading h1,
.cse-account h1 {
    margin: 8px 0 7px;
    color: var(--cse-auth-ink);
    font-size: clamp(25px, 5vw, 32px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.2;
}
.cse-auth__heading p {
    margin: 0;
    color: var(--cse-auth-muted);
    font-size: 15px;
    line-height: 1.6;
}

.cse-auth form > label:not(.cse-auth-check) {
    display: block;
    margin: 18px 0 7px;
    color: #344256;
    font-size: 13px;
    font-weight: 650;
}
.cse-auth input:not([type="checkbox"]) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--cse-auth-ink);
    background: #fff;
    border: 1px solid var(--cse-auth-border);
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(20, 35, 55, .03);
    font: inherit;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.cse-auth input:not([type="checkbox"]):hover { border-color: #aebdd0; }
.cse-auth input:not([type="checkbox"]):focus {
    border-color: var(--cse-auth-brand);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(49, 92, 245, .12);
}
.cse-auth-check {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0 !important;
    color: var(--cse-auth-muted) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}
.cse-auth-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--cse-auth-brand); }

.cse-auth button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 24px;
    padding: 13px 18px;
    color: #fff;
    background: var(--cse-auth-brand);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(49, 92, 245, .20);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cse-auth button:hover { background: var(--cse-auth-brand-dark); box-shadow: 0 8px 18px rgba(49, 92, 245, .25); transform: translateY(-1px); }
.cse-auth button:focus-visible,
.cse-auth a:focus-visible,
.cse-account a:focus-visible { outline: 3px solid rgba(49, 92, 245, .35); outline-offset: 3px; }
.cse-auth button:active { transform: translateY(0); }

.cse-auth form > p {
    margin: 19px 0 0;
    color: var(--cse-auth-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.cse-auth a { color: var(--cse-auth-brand-dark); font-weight: 650; text-decoration: none; }
.cse-auth a:hover { text-decoration: underline; }
.cse-auth-message,
.cse-auth-notice {
    margin: 0 0 18px;
    padding: 13px 15px;
    color: #264b8b;
    background: #edf4ff;
    border: 1px solid #d5e5ff;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.55;
}

.cse-account { width: min(100% - 32px, 680px); }
.cse-account__profile { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--cse-auth-border); }
.cse-account__avatar {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #547bff, #294bd1);
    border-radius: 18px;
    font-size: 24px;
    font-weight: 750;
}
.cse-account__profile h1 { margin-bottom: 0; font-size: clamp(23px, 4vw, 29px); }
.cse-account__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px 0; }
.cse-account__details > div { min-width: 0; padding: 16px; background: var(--cse-auth-soft); border-radius: 11px; }
.cse-account__details span,
.cse-account__details strong { display: block; overflow-wrap: anywhere; }
.cse-account__details span { margin-bottom: 7px; color: var(--cse-auth-muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.cse-account__details strong { color: var(--cse-auth-ink); font-size: 14px; font-weight: 650; }
.cse-account__logout { display: inline-flex; justify-content: center; width: 100%; box-sizing: border-box; padding: 13px; color: #ad2f3a; background: #fff4f4; border: 1px solid #f4dada; border-radius: 9px; font-size: 14px; font-weight: 700; text-decoration: none; }
.cse-account__logout:hover { color: #8c202a; background: #ffeded; }

@media (max-width: 520px) {
    .cse-auth, .cse-account { width: min(100% - 24px, 480px); margin: 20px auto; padding: 24px 20px; border-radius: 14px; }
    .cse-account__details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cse-auth *, .cse-account * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
