:root {
    --auth-bg: #f7f7f4;
    --auth-surface: #ffffff;
    --auth-text: #171714;
    --auth-muted: #77776f;
    --auth-line: #dfdfd8;
    --auth-line-soft: #ecece6;
    --auth-accent: #3B82F6;
    --auth-accent-2: #2563EB;
    --auth-success: #16a34a;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.studio-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, .055), transparent 28%),
        radial-gradient(circle at 82% 84%, rgba(37, 99, 235, .06), transparent 26%),
        var(--auth-bg);
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.studio-auth-header {
    min-height: 88px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(24px, 5vw, 76px);
    border-bottom: 1px solid rgba(23, 23, 20, .07);
}

.studio-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-text);
    text-decoration: none;
}

.studio-auth-brand__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    padding: 10px;
    background: #151515;
    box-shadow: 0 10px 26px rgba(59, 130, 246, .14);
    position: relative;
}

.studio-auth-brand__icon::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.studio-auth-brand__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: #60a5fa;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-auth-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.studio-auth-brand__text strong {
    font-size: 20px;
    letter-spacing: -.5px;
}

.studio-auth-brand__text strong span {
    color: var(--auth-accent);
}

.studio-auth-brand__text small {
    margin-top: 7px;
    color: #8b8b84;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.studio-auth-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #686861;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}

.studio-auth-home:hover {
    color: var(--auth-accent);
}

.studio-auth-home svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-auth-main {
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    padding: 56px 24px 72px;
}

.studio-auth-card {
    width: min(100%, 520px);
}

.studio-auth-card__intro {
    margin-bottom: 28px;
}

.studio-auth-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.studio-auth-card h1 {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: -1.8px;
}

.studio-auth-card__intro p {
    margin: 11px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
    line-height: 1.7;
}

.studio-auth-form {
    width: 100%;
}

.studio-auth-captcha {
    min-height: 76px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    background: #fafafa;
    border: 1px solid #d8d8d3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.studio-auth-captcha__check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #353530;
    font-size: 14px;
    cursor: default;
}

.studio-auth-captcha__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.studio-auth-captcha__box {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    background: #fff;
    border: 2px solid #5a5a56;
}

.studio-auth-captcha__brand {
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #777;
}

.studio-auth-captcha__brand svg {
    width: 37px;
    height: 37px;
    fill: #5079d9;
}

.studio-auth-captcha__brand small {
    margin-top: 2px;
    font-size: 9px;
}

.studio-auth-captcha__note {
    margin: 8px 0 18px;
    color: #9a9a93;
    font-size: 11px;
    line-height: 1.5;
}

.studio-auth-google {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: relative;
    padding: 0 56px;
    color: #24241f;
    background: var(--auth-surface);
    border: 1px solid #d4d4ce;
    border-radius: 9px;
    font-weight: 750;
    box-shadow: 0 8px 22px rgba(26, 26, 22, .045);
    cursor: default;
}

.studio-auth-google::after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(37, 99, 235, .12));
    opacity: 0;
}

.studio-auth-google__logo {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
}

.studio-auth-google__logo svg {
    width: 20px;
    height: 20px;
}

.studio-auth-google__arrow {
    width: 18px;
    height: 18px;
    position: absolute;
    right: 19px;
    fill: none;
    stroke: #8b8b84;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #aaa9a2;
    font-size: 11px;
    text-align: center;
}

.studio-auth-divider::before,
.studio-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line-soft);
}

.studio-auth-divider span {
    white-space: nowrap;
}

.studio-auth-trial {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 16px;
    background: rgba(59, 130, 246, .045);
    border: 1px solid rgba(59, 130, 246, .13);
    border-radius: 10px;
}

.studio-auth-trial__icon {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #fff;
    color: var(--auth-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .07);
}

.studio-auth-trial__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.studio-auth-trial strong {
    display: block;
    margin-top: 1px;
    color: #33332e;
    font-size: 13px;
}

.studio-auth-trial p {
    margin: 5px 0 0;
    color: #82827b;
    font-size: 11px;
    line-height: 1.55;
}

.studio-auth-register {
    margin: 20px 0 0;
    color: #8e8e87;
    font-size: 12px;
    text-align: center;
}

.studio-auth-register a {
    color: #2563eb;
    font-weight: 750;
    text-decoration: none;
}

.studio-auth-register a:hover {
    text-decoration: underline;
}

.studio-auth-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px 28px;
    color: #aaa9a2;
    font-size: 11px;
}

.studio-auth-footer__dot {
    color: #d2d1ca;
}

@media (max-width: 640px) {
    .studio-auth-header {
        min-height: 74px;
        padding: 14px 18px;
    }

    .studio-auth-brand__icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .studio-auth-brand__text strong {
        font-size: 18px;
    }

    .studio-auth-brand__text small {
        display: none;
    }

    .studio-auth-home {
        font-size: 0;
    }

    .studio-auth-home svg {
        width: 22px;
        height: 22px;
    }

    .studio-auth-main {
        place-items: start center;
        padding: 44px 20px 56px;
    }

    .studio-auth-card h1 {
        font-size: 36px;
    }

    .studio-auth-captcha {
        min-height: 72px;
        padding: 11px 12px;
    }

    .studio-auth-captcha__check {
        gap: 9px;
        font-size: 12px;
    }

    .studio-auth-captcha__box {
        width: 24px;
        height: 24px;
    }

    .studio-auth-google {
        min-height: 54px;
        padding: 0 48px;
        font-size: 14px;
    }

    .studio-auth-divider span {
        white-space: normal;
    }

    .studio-auth-footer {
        flex-wrap: wrap;
        text-align: center;
    }
}


/* v3.7.0 — email/password authentication */
.studio-auth-fields{display:grid;gap:15px}
.studio-auth-fields--register{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.studio-auth-field--full{grid-column:1/-1}
.studio-auth-field{display:grid;gap:7px;color:#334155;font-size:14px;font-weight:720}
.studio-auth-field input{width:100%;min-height:48px;padding:0 14px;border:1px solid #d7dee8;border-radius:10px;background:#fff;color:#172033;font-size:15px;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.studio-auth-field input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.studio-auth-field small{color:#7b8798;font-size:12.5px;font-weight:520;line-height:1.5}
.studio-auth-password-row{position:relative}
.studio-auth-password-row input{padding-right:48px}
.studio-auth-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#64748b;cursor:pointer;font-size:12px;font-weight:750}
.studio-auth-password-toggle:hover{background:#eff6ff;color:#2563eb}
.studio-auth-submit{width:100%;min-height:50px;margin-top:18px;border:0;border-radius:10px;background:#3b82f6;color:#fff;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(37,99,235,.16);transition:background .18s ease,transform .18s ease}
.studio-auth-submit:hover{background:#2563eb;transform:translateY(-1px)}
.studio-auth-submit:active{background:#1d4ed8;transform:none}
.studio-auth-form-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;font-size:13px;color:#64748b}
.studio-auth-form-links a,.studio-auth-inline-link{color:#2563eb;font-weight:750;text-decoration:none}
.studio-auth-form-links a:hover,.studio-auth-inline-link:hover{text-decoration:underline}
.studio-auth-alert{margin:0 0 16px;padding:12px 14px;border-radius:10px;font-size:13.5px;line-height:1.55}
.studio-auth-alert.is-error{border:1px solid #fecaca;background:#fef2f2;color:#991b1b}
.studio-auth-alert.is-success{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}
.studio-auth-alert.is-info{border:1px solid #bfdbfe;background:#eff6ff;color:#1e40af}
.studio-auth-checkline{display:flex;align-items:flex-start;gap:9px;margin-top:12px;color:#64748b;font-size:12.5px;line-height:1.5}
.studio-auth-checkline input{margin-top:3px;accent-color:#3b82f6}
.studio-auth-meta-card{margin-top:18px;padding:14px 15px;border:1px solid #dbeafe;border-radius:11px;background:#f8fbff;color:#526276;font-size:13px;line-height:1.6}
.studio-auth-meta-card strong{color:#1e40af}
.studio-auth-dev-link{margin-top:12px;padding:10px 12px;border:1px dashed #93c5fd;border-radius:9px;background:#eff6ff;font-size:12px;word-break:break-all}
.studio-auth-dev-link a{color:#1d4ed8}
@media(max-width:640px){.studio-auth-fields--register{grid-template-columns:1fr}.studio-auth-field--full{grid-column:auto}.studio-auth-form-links{align-items:flex-start;flex-direction:column}.studio-auth-field input{min-height:46px}}

/* v3.7.9 - Google OAuth login/register */
a.studio-auth-google{text-decoration:none;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
a.studio-auth-google:hover{border-color:#b9c7dc;box-shadow:0 10px 26px rgba(37,99,235,.09);transform:translateY(-1px)}
.studio-auth-google.is-disabled{opacity:.58;cursor:not-allowed;box-shadow:none}
.studio-auth-google__logo{font-size:18px;font-weight:850;color:#334155;font-family:Arial,Helvetica,sans-serif}
.studio-auth-google-note{margin:8px 0 0;color:#7b8798;font-size:12.5px;line-height:1.5;text-align:center}
.studio-auth-google-note code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px}
.studio-auth-trial--spaced{margin-top:18px}
.studio-auth-google-account{display:grid;gap:5px;margin:0 0 16px;padding:13px 15px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}
.studio-auth-google-account__label{color:#64748b;font-size:12px;font-weight:650}
.studio-auth-google-account strong{color:#172033;font-size:14px;word-break:break-word}

/* StudioVNS default brand logo */
.studio-auth-brand--studiovns{display:flex;align-items:center}
.studio-auth-brand--studiovns .studio-auth-brand__image{display:block;width:248px;max-width:100%;height:auto;object-fit:contain;object-position:left center;border-radius:0}
@media(max-width:640px){.studio-auth-brand--studiovns .studio-auth-brand__image{width:196px;height:auto;border-radius:0}}
