/* Sign-in page */
* { box-sizing: border-box; margin: 0; padding: 0; }

.auth-page {
    font-family: var(--font);
    color: #000;
    background: #f5f7f6;
    -webkit-font-smoothing: antialiased;
}

.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- Brand panel ---------- */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #fff;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(61,119,102,0.55) 0%, rgba(61,119,102,0) 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(61,119,102,0.35) 0%, rgba(61,119,102,0) 55%),
        #000;
}

/* big faint X, echoing the logo mark */
.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    width: 150%;
    height: 90px;
    left: -25%;
    top: 58%;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(232,52,28,0.0), rgba(255,196,0,0.10), rgba(240,138,0,0.0));
    transform: rotate(-38deg);
    pointer-events: none;
}
.auth-brand::after { transform: rotate(38deg); }

.auth-brand-inner { position: relative; z-index: 1; max-width: 520px; }

.brand-plate {
    display: inline-flex;
    padding: 14px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7);
    margin-bottom: 56px;
}
.brand-plate img { display: block; height: 46px; width: auto; }

.brand-headline { font-size: 52px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 18px; }
.brand-sub { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.72); max-width: 440px; margin-bottom: 40px; }

.brand-points { list-style: none; display: grid; gap: 18px; }
.brand-points li { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.7); }
.brand-points strong { display: block; color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 1px; }
.point-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(61,119,102,0.28);
    border: 1px solid rgba(143,184,170,0.35);
    color: #8fb8aa;
}
.point-icon svg { width: 20px; height: 20px; }

.auth-brand-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 40px; }

/* ---------- Form panel ---------- */
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e3e8e6;
    border-radius: 22px;
    padding: 40px 36px 32px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 24px 48px -24px rgba(0,0,0,0.18);
}

.auth-card-logo { display: none; height: 40px; width: auto; margin-bottom: 26px; }

.auth-head { margin-bottom: 26px; }
.auth-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 6px; }
.auth-head p { font-size: 15px; color: #6b7a75; }

.auth-error {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; margin-bottom: 20px;
    border-radius: 12px; border: 1px solid #f5c6c1;
    background: #fdecea; color: #b42318;
    font-size: 14px; font-weight: 500;
}
.auth-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }

.input { position: relative; display: flex; align-items: center; }
.input > svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #8a9a94; pointer-events: none; }
.input input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    font: inherit; font-size: 15px; color: #000;
    background: #fff;
    border: 1px solid #d5dcd9;
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input input::placeholder { color: #9aa6a1; }
.input input:hover { border-color: #aab7b2; }
.input input:focus { outline: none; border-color: #3d7766; box-shadow: 0 0 0 4px rgba(61,119,102,0.16); }
.input:focus-within > svg { color: #3d7766; }

.toggle-pw {
    position: absolute; right: 6px;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; background: transparent; color: #8a9a94; cursor: pointer;
}
.toggle-pw svg { position: static; width: 18px; height: 18px; }
.toggle-pw:hover { background: #eef3f1; color: #000; }
.toggle-pw[aria-pressed="true"] { color: #3d7766; }

.auth-submit {
    width: 100%;
    margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 20px;
    font: inherit; font-size: 15px; font-weight: 600; color: #fff;
    background: #3d7766;
    border: 0; border-radius: 12px; cursor: pointer;
    box-shadow: 0 10px 22px -10px rgba(61,119,102,0.8);
    transition: background 0.15s, transform 0.15s;
}
.auth-submit svg { width: 18px; height: 18px; transition: transform 0.15s; }
.auth-submit:hover { background: #2c5a4c; transform: translateY(-1px); }
.auth-submit:hover svg { transform: translateX(3px); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:focus-visible { outline: 3px solid rgba(61,119,102,0.4); outline-offset: 2px; }

.auth-help {
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid #e3e8e6;
    font-size: 13px; line-height: 1.55; color: #6b7a75; text-align: center;
}
.auth-secure {
    margin-top: 14px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; color: #8a9a94;
}
.auth-secure svg { width: 13px; height: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth-brand { padding: 40px 36px; }
    .brand-headline { font-size: 42px; }
}
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 24px 16px; }
    .auth-card { padding: 32px 24px 26px; }
    .auth-card-logo { display: block; }
}

/* ---------- Sign-up page ---------- */
.input-plain input { padding-left: 14px; padding-right: 14px; }
.label-note { font-weight: 500; color: #6b7a75; }
.field-hint { margin-top: 6px; font-size: 12px; color: #6b7a75; line-height: 1.45; }
.handle-status { margin-top: 6px; font-size: 13px; font-weight: 600; }
.handle-ok { color: #2c5a4c; }
.handle-bad { color: #b42318; }

/* hidden bot trap, kept off-screen rather than display:none so simple bots still fill it */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.auth-help a { color: #3d7766; font-weight: 700; text-decoration: none; }
.auth-help a:hover { text-decoration: underline; }

.plan-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 480px; }
.plan-box { padding: 18px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.plan-box-premium { background: rgba(61,119,102,0.28); border-color: rgba(143,184,170,0.5); }
.plan-box-name { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fb8aa; margin-bottom: 6px; }
.plan-box-price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.plan-box-price span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6); margin-left: 3px; }
.plan-box ul { list-style: none; display: grid; gap: 6px; font-size: 13px; color: rgba(255,255,255,0.78); }
.plan-box li { position: relative; padding-left: 18px; }
.plan-box li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 5px; border-left: 2px solid #8fb8aa; border-bottom: 2px solid #8fb8aa; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .auth-card { margin: 8px 0; }
}

/* Workspace finder */
.input-suffix { align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
.input-suffix .suffix { display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #d5dcd9; border-left: 0; border-radius: 0 12px 12px 0; background: #f1f4f3; color: #6b7a75; font-size: 14px; white-space: nowrap; }
.input-suffix:focus-within .suffix { border-color: #3d7766; }
.auth-help-minor { display: inline-block; margin-top: 8px; font-weight: 500 !important; color: #6b7a75 !important; font-size: 12px; }
