:root {
    --naboo-primary: #ff3364;
    --naboo-primary-dark: #df1e4d;
    --naboo-ink: #1f2632;
    --naboo-muted: #969da8;
    --naboo-border: #dfe3e8;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.naboo-auth {
    min-height: 100vh;
    color: var(--naboo-ink);
    background: #fff;
}

.naboo-auth-shell {
    display: grid;
    grid-template-columns: minmax(390px, 43%) minmax(0, 1fr);
    min-height: 100vh;
}

.naboo-auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(34px, 5vw, 72px);
    color: #fff;
    background: #1f2632;
}

.naboo-auth-brand::before,
.naboo-auth-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

.naboo-auth-brand::before {
    width: min(46vw, 640px);
    height: min(46vw, 640px);
    right: -38%;
    bottom: -16%;
    background: radial-gradient(circle at 42% 42%, #ff6d90 0%, #ff3364 45%, #d81749 100%);
}

.naboo-auth-brand::after {
    width: 190px;
    height: 190px;
    top: 31%;
    right: -94px;
    border: 28px solid rgb(255 255 255 / 7%);
}

.naboo-auth-logo {
    display: inline-flex;
    align-self: flex-start;
}

.naboo-auth-logo img {
    display: block;
    width: clamp(150px, 13vw, 190px);
    height: auto;
}

.naboo-auth-brand-copy {
    width: min(100%, 520px);
    margin: auto 0;
    padding: 80px 0;
}

.naboo-auth-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #ffafc2;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.naboo-auth-kicker::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--naboo-primary);
}

.naboo-auth-brand-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 4vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.naboo-auth-brand-copy p {
    width: min(100%, 460px);
    margin: 28px 0 0;
    color: rgb(255 255 255 / 70%);
    font-size: clamp(.95rem, 1.2vw, 1.08rem);
    line-height: 1.7;
}

.naboo-auth-brand-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(255 255 255 / 58%);
    font-size: .76rem;
    font-weight: 600;
}

.naboo-auth-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--naboo-primary);
    box-shadow: 0 0 0 5px rgb(255 51 100 / 16%);
}

.naboo-auth-main {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
    padding: clamp(24px, 4vw, 56px);
    background: #fff;
}

.naboo-auth-mobile-brand {
    display: none;
}

.naboo-auth-form-wrap {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
}

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

.auth-heading {
    margin-bottom: 44px;
    text-align: center;
}

.auth-heading-compact {
    margin-bottom: 32px;
}

.auth-heading h1 {
    margin: 0 0 12px;
    color: var(--naboo-ink);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.auth-heading p {
    margin: 0;
    color: var(--naboo-muted);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.55;
}

.naboo-login-logo {
    display: block;
    width: min(178px, 62%);
    height: auto;
    margin: 0 auto 18px;
}

.field {
    margin-bottom: 20px;
}

.field-password {
    margin-bottom: 14px;
}

.field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: .82rem 1rem;
    color: var(--naboo-ink);
    border: 1px solid var(--naboo-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder {
    color: var(--naboo-muted);
}

.field input:focus {
    border-color: var(--naboo-primary);
    box-shadow: 0 0 0 3px rgb(255 51 100 / 12%);
}

.btn {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: .8rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--naboo-primary);
}

.btn-primary:hover {
    background: var(--naboo-primary-dark);
}

.btn-google {
    color: #3f4651;
    border-color: var(--naboo-border);
    background: #fff;
}

.btn-google:hover {
    border-color: #c8ced7;
    background: #fafbfc;
}

.separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 34px 0;
    color: var(--naboo-muted);
    font-size: .78rem;
    font-weight: 600;
}

.separator::before,
.separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eceef1;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 32px;
    font-size: .85rem;
    font-weight: 600;
}

.login-options a,
.back-link,
.link-button {
    color: var(--naboo-primary);
    text-decoration: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #626a76;
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--naboo-primary);
}

.alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.5;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-danger {
    color: #a4163a;
    border-color: #ffc4d2;
    background: #fff2f5;
}

.alert-success {
    color: #176b45;
    border-color: #b9ead3;
    background: #effbf5;
}

.back-link,
.logout-form {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: .88rem;
    font-weight: 700;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--naboo-primary);
}

.workspace-list {
    display: grid;
    gap: 12px;
}

.workspace-card {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 14px;
    padding: 15px;
    color: var(--naboo-ink);
    border: 1px solid var(--naboo-border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.workspace-card:hover {
    border-color: #ff9ab2;
    box-shadow: 0 10px 28px rgb(31 38 50 / 8%);
    transform: translateY(-1px);
}

.workspace-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: var(--naboo-primary);
    border-radius: 10px;
    background: #fff0f4;
    font-weight: 800;
}

.workspace-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
    flex: 1;
}

.workspace-copy small {
    overflow: hidden;
    color: var(--naboo-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-arrow {
    color: var(--naboo-primary);
    font-size: 1.25rem;
}

.empty-state {
    padding: 28px 22px;
    border: 1px dashed #d8dde5;
    border-radius: 12px;
    text-align: center;
    background: #fafbfc;
}

.empty-state-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--naboo-primary);
    border-radius: 50%;
    background: #fff0f4;
    font-weight: 800;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0;
    color: var(--naboo-muted);
    font-size: .86rem;
    line-height: 1.55;
}

.link-button {
    padding: 0;
    border: 0;
    cursor: pointer;
    background: transparent;
    font-weight: 700;
}

.naboo-auth-copyright {
    width: 100%;
    color: var(--naboo-muted);
    font-size: .76rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 991.98px) {
    .naboo-auth-shell {
        display: block;
    }

    .naboo-auth-brand {
        display: none;
    }

    .naboo-auth-main {
        min-height: 100vh;
        padding: 28px clamp(20px, 6vw, 52px);
        background: linear-gradient(180deg, #fff6f8 0, #fff 220px);
    }

    .naboo-auth-mobile-brand {
        display: flex;
        justify-content: center;
    }

    .naboo-auth-mobile-brand img {
        width: 150px;
        height: auto;
    }

    .naboo-auth-form-wrap {
        align-items: flex-start;
        padding: 48px 0 32px;
    }
}

@media (max-width: 575.98px) {
    .naboo-auth-main {
        padding: 22px 20px;
    }

    .naboo-auth-form-wrap {
        padding-top: 38px;
    }

    .auth-heading {
        margin-bottom: 32px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
