 :root {
     --bg: #081430;
     --card: #0b1b3b;
     --ink: #e2e8f0;
     --muted: #94a3b8;
     --accent: #2563eb;
     --accent-2: #1d4ed8;
     --warn: #facc15;
     --danger: #ef4444;
     --radius: 18px;
     --shadow: 0 20px 60px rgba(0, 0, 0, .35);
 }

 * {
     box-sizing: border-box
 }

 body {
     margin: 0;
     min-height: 100vh;
     font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
     background: linear-gradient(180deg, #0a1433, #071024 60%);
     color: var(--ink);
     display: grid;
     place-items: center;
     padding: 24px;
 }

 .auth-wrap {
     width: 100%;
     max-width: 720px;
 }

 .brand {
     display: inline-flex;
     align-items: center;
     gap: .6rem;
     margin-bottom: 16px;
     color: var(--ink);
     font-weight: 900;
     letter-spacing: .2px;
 }

 .brand:hover {
     color: #fff
 }

 .auth-card {
     background: var(--card);
     border: 2px solid rgba(255, 255, 255, .06);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     overflow: hidden
 }

 .tabs {
     display: flex
 }

 .tabs button {
     flex: 1;
     background: transparent;
     color: var(--muted);
     border: 0;
     padding: 14px 18px;
     font-weight: 900;
     cursor: pointer;
     border-bottom: 2px solid transparent
 }

 .tabs button.active {
     color: #fff;
     border-color: var(--warn)
 }

 .pane {
     display: none;
     padding: 20px;
 }

 .pane.active {
     display: block
 }

 .grid {
     display: grid;
     gap: 12px
 }

 label {
     font-size: .9rem;
     color: var(--muted)
 }

 input {
     width: 100%;
     padding: 12px 14px;
     border-radius: 12px;
     border: 1px solid rgba(255, 255, 255, .12);
     background: rgba(255, 255, 255, .04);
     color: #fff
 }

 .btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: .5rem;
     padding: 12px 16px;
     border-radius: 14px;
     border: 0;
     background: var(--accent);
     color: #fff;
     font-weight: 900;
     cursor: pointer
 }

 .btn:hover {
     background: var(--accent-2)
 }

 .row {
     display: flex;
     gap: 10px;
     align-items: center;
     justify-content: space-between
 }

 .note {
     color: var(--muted);
     font-size: .9rem;
     margin-top: 12px
 }

 .error {
     background: rgba(239, 68, 68, .12);
     border: 1px solid rgba(239, 68, 68, .35);
     color: #fecaca;
     padding: 10px 12px;
     border-radius: 12px;
     display: none;
 }

 .ok {
     background: rgba(34, 197, 94, .12);
     border: 1px solid rgba(34, 197, 94, .35);
     color: #bbf7d0;
     padding: 10px 12px;
     border-radius: 12px;
     display: none;
 }

 a {
     color: #93c5fd
 }

 /* Inputs: keep text fields full width, but NOT checkboxes/radios */
 input[type="checkbox"],
 input[type="radio"] {
     width: auto;
     inline-size: auto;
 }

 /* Selects styled like inputs + native arrow */
 select {
     width: 100%;
     padding: 12px 42px 12px 14px;
     border-radius: 12px;
     border: 1px solid rgba(255, 255, 255, .12);
     background: #0b1b3b;
     color: #fff;
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
     background-repeat: no-repeat;
     background-position: right 12px center;
 }

 select:focus,
 input:focus {
     outline: none;
     border-color: rgba(37, 99, 235, .8);
     box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
 }

 /* Labels as blocks with spacing */
 label {
     display: block;
     margin-bottom: 6px;
 }

 /* Checkbox line */
 .checkbox {
     display: inline-flex;
     align-items: center;
     gap: .6rem;
     color: var(--ink);
     font-size: .95rem;
 }

 .checkbox input {
     width: 18px;
     height: 18px;
     accent-color: var(--warn);
     cursor: pointer;
 }

 /* Groups of checkboxes */
 .checks {
     display: flex;
     flex-wrap: wrap;
     gap: 10px 16px;
     align-items: flex-start;
 }

 /* Rows: default = start; explicit modifiers when needed */
 .row {
     display: flex;
     gap: 10px;
     align-items: center;
     justify-content: flex-start;

 }

 .row--between {
     justify-content: space-between;

 }

 .row--wrap {
     flex-wrap: wrap;

 }

 /* Two-column helpers for desktop */
 .cols-2 {
     display: grid;
     gap: 12px;
     grid-template-columns: 1fr;
 }

 @media (min-width: 560px) {
     .cols-2 {
         grid-template-columns: 1fr 1fr;
     }
 }

 /* Mobile-friendly actions */
 .form-actions {
     display: flex;
     gap: 12px;
     align-items: center;
     justify-content: space-between;
 }

 @media (max-width: 480px) {
     .form-actions {
         flex-direction: column;
         align-items: stretch;
     }

     .btn {
         width: 100%;
     }
 }