﻿@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;
    --ink: #302139;
    --muted: #80718a;
    --brand: #832c8c;
    --bs-primary: #832c8c;
    --bs-primary-rgb: 131, 44, 140;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: radial-gradient(ellipse at 5% 10%, #f0e4f5, transparent 52%), #f8f6fb;
    -webkit-font-smoothing: antialiased;
}
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(1080px, 100%);
    height: min(680px, calc(100svh - 48px));
    min-height: 0;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 70px -35px #58346c35;
}
.story-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 25px 30px 20px;
    border-radius: 18px;
    background: #f3eaf8;
}
.story-panel:before { content: ''; position: absolute; z-index: -1; width: 280px; height: 280px; right: -160px; top: -85px; border-radius: 50%; background: #e9d8f1; }
.brand { display: flex; flex-shrink: 0; align-items: center; width: fit-content; text-decoration: none; color: var(--muted); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 110px; height: auto; display: block; }
.brand-divider { height: 21px; width: 1px; background: #dac6e3; margin: 0 15px; }
.brand small { font-size: 12px; }
.story-copy { margin-top: 25px; position: relative; z-index: 2; }
.eyebrow { display: block; color: #9d6caa; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; }
.story-copy h1 { font-family: Manrope, sans-serif; font-size: 39px; font-weight: 800; line-height: 1.17; letter-spacing: -1.6px; margin: 15px 0 14px; }
.story-copy h1 span { color: var(--brand); }
.story-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.property-scene { flex: 1; min-height: 0; position: relative; margin: 0 -25px; }
.property-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scene-orbit { position: absolute; width: 290px; height: 290px; border: 1px solid #e5d5ed80; border-radius: 50%; left: calc(50% - 145px); bottom: -50px; }
.orbit-two { width: 370px; height: 370px; left: calc(50% - 185px); bottom: -90px; }
.scene-label { position: absolute; display: flex; align-items: center; gap: 9px; z-index: 2; padding: 10px 12px; border-radius: 12px; background: #ffffffed; color: #694477; box-shadow: 0 8px 25px #65367709; font-size: 11px; font-weight: 600; }
.scene-label small { display: block; margin-top: 2px; color: #9a84a4; font-size: 10px; font-weight: 400; }
.label-home { left: 5px; top: 34%; transform: rotate(-4deg); }
.label-check { right: 4px; bottom: 17%; transform: rotate(3deg); }
.mini-icon, .check-circle { display: grid; place-items: center; background: #f4eaf8; color: #9852a4; border-radius: 9px; width: 29px; height: 29px; }
.mini-icon svg { width: 18px; height: 18px; }
.check-circle { width: 22px; height: 22px; border-radius: 50%; }
.check-circle svg { width: 15px; height: 15px; }
.story-footer { flex-shrink: 0; display: flex; justify-content: center; align-items: center; gap: 9px; color: #9a7ea7; font-size: 11px; padding-top: 8px; }
.footer-line { width: 18px; height: 1px; background: #c9abd6; }
.form-panel { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 21px 38px 16px; border-radius: 18px; background: radial-gradient(ellipse at 100% 0, #fcf9fd, transparent 55%); }
.panel-top { display: flex; justify-content: flex-end; }
.workspace-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #eee6f2; border-radius: 7px; color: #927c9e; font-size: 11px; }
.workspace-tag svg { width: 14px; height: 14px; }
.form-content { width: 100%; max-width: 352px; margin: auto; padding: 20px 0; }
.form-eyebrow { color: #9b7da8; font-size: 10px; letter-spacing: 1.6px; margin-bottom: 11px; }
.form-eyebrow:before { content: ''; display: block; height: 3px; width: 28px; border-radius: 5px; background: #c899d3; margin-bottom: 20px; }
#login-title { font-family: Manrope, sans-serif; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -1.1px; margin: 0 0 12px; }
.form-description { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 26px; }
.field-group { margin-bottom: 19px; }
.form-label { font-size: 13px; font-weight: 600; color: #57405f; margin-bottom: 8px; }
.input-wrap { position: relative; }
.field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #aa97b4; pointer-events: none; }
.form-control { min-height: 48px; border-color: #e8dfee; border-radius: 9px; background: #fcfafd; font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap .form-control { padding-left: 42px; padding-right: 14px; }
.form-control::placeholder { color: #a394ae; }
.form-control:hover { border-color: #c8accf; }
.form-control:focus { color: var(--ink); background: #fff; border-color: #b378bf; box-shadow: 0 0 0 .22rem #832c8c12; }
.input-wrap:focus-within .field-icon { color: var(--brand); }
.password-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.password-group .form-control { padding-right: 46px; }
.password-group { margin-bottom: 24px; }
.btn { font-size: 14px; font-weight: 600; border-radius: 9px; transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s, transform .2s; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: #832c8c; --bs-btn-border-color: #832c8c; --bs-btn-hover-bg: #702078; --bs-btn-hover-border-color: #702078; --bs-btn-active-bg: #64216d; --bs-btn-active-border-color: #64216d; --bs-btn-disabled-bg: #832c8c; --bs-btn-disabled-border-color: #832c8c; --bs-btn-focus-shadow-rgb: 131,44,140; min-height: 48px; }
.submit-button { display: flex; justify-content: center; align-items: center; gap: 9px; box-shadow: 0 5px 14px #832c8c16; }
.submit-button:hover { box-shadow: 0 7px 18px #832c8c25; transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; transform: none; }
.btn-link { --bs-btn-color: #91439a; --bs-btn-hover-color: #62226b; --bs-btn-active-color: #62226b; text-decoration: none; }
.forgot-link { padding: 0; border: 0; border-radius: 3px; font-size: 12px; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.password-toggle { position: absolute; right: 6px; top: 5px; display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 6px; color: #9b87a8; background: transparent; cursor: pointer; }
.password-toggle:hover { background: #f0e4f5; color: var(--brand); }
.password-toggle svg { width: 18px; height: 18px; }
.eye-closed { display: none; }
.password-toggle[aria-pressed=true] .eye-open { display: none; }
.password-toggle[aria-pressed=true] .eye-closed { display: block; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.submit-button:disabled .button-spinner { display: block; }
.form-note { display: flex; align-items: center; gap: 10px; color: #a48bb0; font-size: 10px; margin-top: 23px; white-space: nowrap; }
.note-line { flex: 1; height: 1px; background: #eee5f3; }
.form-footer { display: flex; justify-content: space-between; gap: 12px; color: #a18dab; font-size: 10px; }
.form-footer span:last-child { text-align: right; max-width: 160px; }
.form-error { display: flex; gap: 8px; color: #9f3832; border: 1px solid #f2d5d1; background: #fff4f3; padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.form-error svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.form-error[hidden] { display: none; }
.recovery-card { border: 1px solid #eee3f3; border-radius: 20px; box-shadow: 0 20px 80px #38204525; }
.recovery-card .modal-header { padding: 24px 26px 0; }
.recovery-card .modal-body { padding: 22px 26px 18px; }
.recovery-mark { width: 46px; height: 46px; background: #f3e9f8; border-radius: 13px; display: grid; place-items: center; color: var(--brand); }
.recovery-mark svg { width: 25px; height: 25px; }
#forgotPasswordTitle { font-family: Manrope, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 12px; }
.recovery-description { font-size: 14px; line-height: 1.7; color: var(--muted); margin-bottom: 22px; }
.recovery-notice { font-size: 13px; --bs-alert-color: #6d4a7a; --bs-alert-bg: #f5eef9; --bs-alert-border-color: #e4d4ec; }
.recovery-back { font-size: 13px; }
:focus-visible { outline: 3px solid #b778c4; outline-offset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-height: 720px) and (min-width: 741px) {
    body { padding: 16px; }
    .login-shell { height: calc(100svh - 32px); }
    .story-panel { padding: 18px 25px 14px; }
    .brand-logo { width: 88px; }
    .story-copy { margin-top: 13px; }
    .story-copy h1 { font-size: 32px; margin: 10px 0; }
    .story-copy p { font-size: 13px; }
    .form-panel { padding: 16px 32px 12px; }
    .form-content { padding: 10px 0; }
    .form-eyebrow:before { margin-bottom: 12px; }
    .form-description { margin-bottom: 20px; }
    .form-note { margin-top: 18px; }
}
@media (max-height: 560px) and (min-width: 741px) {
    .login-shell { height: auto; min-height: calc(100svh - 32px); }
    .story-footer { display: none; }
    .property-scene { min-height: 140px; }
}
@media (max-width: 900px) and (min-width: 741px) {
    .story-panel { padding-left: 22px; padding-right: 22px; }
    .story-copy h1 { font-size: 32px; }
    .form-panel { padding-left: 26px; padding-right: 26px; }
    .scene-label { font-size: 10px; padding: 8px; }
    .scene-label small { font-size: 9px; }
}
@media (max-width: 740px) {
    body { padding: 16px; }
    .login-shell { width: min(440px, 100%); height: auto; min-height: 0; display: block; padding: 7px; border-radius: 20px; }
    .story-panel { padding: 13px 22px; border-radius: 14px; }
    .brand-logo { width: 91px; }
    .story-copy, .property-scene, .story-footer { display: none; }
    .form-panel { padding: 20px 22px 16px; }
    .workspace-tag { font-size: 10px; padding: 4px 8px; }
    .form-content { max-width: none; padding: 25px 0; }
    .form-eyebrow:before { margin-bottom: 15px; }
    #login-title { font-size: 30px; }
    .form-description { font-size: 14px; margin-bottom: 24px; }
    .form-control { font-size: 16px; }
    .form-footer { font-size: 10px; }
}
@media (max-width: 360px) {
    body { padding: 10px; }
    .form-panel { padding-left: 17px; padding-right: 17px; }
    .form-note { font-size: 9px; gap: 6px; }
    .form-footer span:last-child { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
