 :root {
     --background: #ffffff;
     --foreground: #0b1220;
     --muted: #f4f6fb;
     --muted-foreground: #6b7280;
     --border: #e5e7eb;
     --input: #e5e7eb;
     --ring: #9ca3af;
     --primary: #16213a;
     --primary-foreground: #f8fafc;
     --card: #ffffff;
     --destructive: #b91c1c;
     --destructive-bg: #fef2f2;
     --destructive-border: #fecaca;
     --radius: 10px;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
 }

 * {
     box-sizing: border-box;
 }

 html,
 body {
     margin: 0;
     padding: 0;
 }

 body {
     background: var(--background);
     color: var(--foreground);
     min-height: 100vh;
     -webkit-font-smoothing: antialiased;
 }

 .layout {
     min-height: 100vh;
     display: grid;
     grid-template-columns: 1fr;
 }

 @media (min-width: 1024px) {
     .layout {
         grid-template-columns: 1fr 1fr;
     }
 }

 /* Hero panel */
 .hero {
     display: none;
     position: relative;
     overflow: hidden;
     padding: 48px;
     background: var(--primary);
     color: var(--primary-foreground);
     flex-direction: column;
     justify-content: space-between;
 }

 @media (min-width: 1024px) {
     .hero {
         display: flex;
     }
 }

 .brand {
     display: flex;
     align-items: center;
     gap: 10px;
     font-weight: 600;
     font-size: 16px;
     letter-spacing: -0.01em;
     z-index: 1;
 }

 .brand-mark {
     height: 32px;
     width: 32px;
     border-radius: 8px;
     background: rgba(255, 255, 255, 0.15);
     display: grid;
     place-items: center;
     font-size: 13px;
     font-weight: 700;
 }

 .brand-mobile {
     display: flex;
     margin-bottom: 24px;
 }

 .brand-mobile .brand-mark {
     background: var(--primary);
     color: var(--primary-foreground);
 }

 @media (min-width: 1024px) {
     .brand-mobile {
         display: none;
     }
 }

 .hero-copy {
     max-width: 420px;
     z-index: 1;
 }

 .hero-copy h2 {
     font-size: 28px;
     line-height: 1.25;
     font-weight: 600;
     margin: 0 0 14px;
 }

 .hero-copy p {
     margin: 0;
     font-size: 14px;
     line-height: 1.6;
     color: rgba(248, 250, 252, 0.7);
 }

 .hero-footer {
     font-size: 12px;
     color: rgba(248, 250, 252, 0.6);
     z-index: 1;
 }

 .blob {
     position: absolute;
     border-radius: 9999px;
     filter: blur(80px);
     pointer-events: none;
 }

 .blob-1 {
     width: 380px;
     height: 380px;
     right: -120px;
     bottom: -120px;
     background: rgba(255, 255, 255, 0.1);
 }

 .blob-2 {
     width: 260px;
     height: 260px;
     left: -80px;
     top: 80px;
     background: rgba(255, 255, 255, 0.05);
 }

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

 @media (min-width: 640px) {
     .form-wrap {
         padding: 48px;
     }
 }

 .form-card {
     width: 100%;
     max-width: 360px;
 }

 .form-head h1 {
     font-size: 22px;
     font-weight: 600;
     margin: 0 0 6px;
     letter-spacing: -0.01em;
 }

 .form-head p {
     margin: 0 0 28px;
     font-size: 14px;
     color: var(--muted-foreground);
 }

 form {
     display: flex;
     flex-direction: column;
     gap: 16px;
 }

 .field {
     display: flex;
     flex-direction: column;
     gap: 6px;
 }

 .field label {
     font-size: 13px;
     font-weight: 500;
 }

 .field input {
     height: 40px;
     border-radius: var(--radius);
     border: 1px solid var(--input);
     background: var(--background);
     padding: 0 12px;
     font-size: 14px;
     outline: none;
     transition: border-color .15s, box-shadow .15s;
     font-family: inherit;
 }

 .field input:focus {
     border-color: var(--ring);
     box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.25);
 }

 .btn-primary {
     height: 40px;
     border-radius: var(--radius);
     border: none;
     background: var(--primary);
     color: var(--primary-foreground);
     font-size: 14px;
     font-weight: 500;
     cursor: pointer;
     transition: opacity .15s, transform .05s;
     font-family: inherit;
 }

 .btn-primary:hover {
     opacity: 0.92;
 }

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

 .btn-primary:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 .error {
     border: 1px solid var(--destructive-border);
     background: var(--destructive-bg);
     color: var(--destructive);
     border-radius: var(--radius);
     padding: 8px 12px;
     font-size: 13px;
 }

 .demo {
     margin-top: 28px;
     border: 1px solid var(--border);
     background: var(--muted);
     border-radius: var(--radius);
     padding: 14px 16px;
     font-size: 12px;
     line-height: 1.7;
     color: var(--muted-foreground);
 }

 .demo .demo-title {
     color: var(--foreground);
     font-weight: 500;
     margin-bottom: 4px;
 }

 .demo code {
     font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
     color: var(--foreground);
 }
