@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    color-scheme: light;
    font-family: 'DM Sans', sans-serif;
    color: #20243a;
    background: #f7f8fc;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
    font-weight: 400;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse at 50% 0%, #eef0ff 0, #f7f8fc 52%, #f7f8fc 100%);
}

button, input { font: inherit; }
a { color: inherit; }

.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 24px;
}

.auth-card {
    width: min(100%, 440px);
    padding: 36px 40px 30px;
    border: 1px solid #eaebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgb(34 42 84 / 8%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #242844;
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.7px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #6258e8;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.auth-heading { margin-top: 34px; }
.eyebrow { margin: 0 0 8px; color: #6258e8; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; }
h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.description { margin: 8px 0 0; color: #777b8e; font-size: 14px; line-height: 1.6; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 26px 0 24px;
    padding: 4px;
    border-radius: 10px;
    background: #f3f4f9;
}

.tab { padding: 10px; border-radius: 7px; color: #777b8e; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.tab.is-active { background: #fff; color: #292d46; box-shadow: 0 1px 4px rgb(30 35 70 / 10%); }

.auth-form { display: flex; flex-direction: column; }
.auth-form > label, .password-label-row label { margin: 0 0 8px; color: #35394f; font-size: 13px; font-weight: 600; }
.auth-form > input, .password-field input {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #e1e3ec;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #292d46;
    font-size: 13px;
    transition: border-color .15s, box-shadow .15s;
}

.auth-form > input { margin-bottom: 19px; }
.auth-form input::placeholder { color: #a1a4b2; }
.auth-form > input:focus, .password-field input:focus { border-color: #766df0; box-shadow: 0 0 0 3px rgb(98 88 232 / 12%); }
.password-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.password-label-row label { margin: 0; }
.text-link { color: #6258e8; font-size: 12px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.password-field { position: relative; margin-bottom: 15px; }
.password-field input { padding-right: 58px; }
.password-toggle { position: absolute; top: 0; right: 0; height: 46px; padding: 0 13px; border: 0; background: transparent; color: #777b8e; cursor: pointer; font-size: 12px; font-weight: 600; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 1px 0 20px; color: #65697d; font-size: 12px; line-height: 1.5; }
.check-row input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #6258e8; }
.submit-button { display: flex; height: 47px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 8px; background: #6258e8; color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .15s, transform .15s; }
.submit-button:hover { transform: translateY(-1px); background: #5147d7; }
.submit-button span { font-size: 18px; font-weight: 400; }
.form-note { margin: 17px 0 0; color: #9295a3; font-size: 11px; line-height: 1.55; text-align: center; }
.auth-footer { margin: 20px 0 0; color: #777b8e; font-size: 12px; text-align: center; }
.auth-footer .text-link { margin-left: 3px; }
.copyright { margin: 20px 0 0; color: #989baa; font-size: 11px; }

@media (max-width: 480px) {
    .page-shell { justify-content: flex-start; padding: 28px 14px 20px; }
    .auth-card { padding: 28px 23px 24px; }
    .auth-heading { margin-top: 28px; }
    h1 { font-size: 25px; }
}