﻿:root {
      --bg-1: #0f1c32;
      --bg-2: #1b355a;
      --bg-3: #1a5c56;
      --card: #ffffff;
      --text: #0e1c31;
      --muted: #4a607d;
      --border: #d3dceb;
      --primary: #1b8f7a;
      --primary-hover: #177664;
      --danger: #b42318;
      --danger-bg: #fee4e2;
      --shadow: 0 32px 88px rgba(4, 10, 22, 0.35);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      font-family: "Manrope", "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 16% 8%, rgba(124, 158, 255, 0.22), transparent 36%),
        radial-gradient(circle at 84% 88%, rgba(57, 223, 189, 0.2), transparent 32%),
        linear-gradient(140deg, var(--bg-1), var(--bg-2) 54%, var(--bg-3));
      overflow: hidden;
    }

    .orb {
      position: fixed;
      border-radius: 999px;
      filter: blur(10px);
      opacity: 0.34;
      animation: drift 11s ease-in-out infinite;
      pointer-events: none;
    }

    .orb-a {
      width: 300px;
      height: 300px;
      background: #48d8b8;
      top: -70px;
      right: -70px;
    }

    .orb-b {
      width: 240px;
      height: 240px;
      background: #82a6ff;
      bottom: -60px;
      left: -50px;
      animation-delay: -3s;
    }

    @keyframes drift {
      0%,
      100% {
        transform: translateY(0) translateX(0);
      }
      50% {
        transform: translateY(-14px) translateX(10px);
      }
    }

    .login-shell {
      width: min(1080px, 100%);
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      border-radius: 30px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(7, 14, 25, 0.42);
      box-shadow: var(--shadow);
      backdrop-filter: blur(14px);
      position: relative;
      z-index: 1;
    }

    .brand-panel {
      color: #f6fbff;
      padding: clamp(28px, 5vw, 52px);
      min-height: 560px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background:
        linear-gradient(140deg, rgba(35, 168, 143, 0.2), rgba(72, 97, 179, 0.2)),
        transparent;
    }

    .brand-logo {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 18px;
      font-weight: 800;
      letter-spacing: -0.03em;
      font-family: "Space Grotesk", sans-serif;
    }

    .brand-logo-mark {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.32);
      background: rgba(255, 255, 255, 0.16);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }

    .brand-content h1 {
      margin: 0 0 14px;
      font-family: "Space Grotesk", sans-serif;
      letter-spacing: -0.04em;
      line-height: 1.08;
      font-size: clamp(30px, 4vw, 48px);
      max-width: 620px;
    }

    .brand-content p {
      margin: 0;
      max-width: 540px;
      color: rgba(229, 241, 255, 0.84);
      line-height: 1.68;
      font-size: 15px;
    }

    .brand-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
    }

    .chip {
      border-radius: 999px;
      padding: 8px 12px;
      border: 1px solid rgba(255, 255, 255, 0.26);
      background: rgba(255, 255, 255, 0.16);
      color: rgba(240, 248, 255, 0.94);
      font-size: 12px;
      font-weight: 700;
    }

    .form-panel {
      background: var(--card);
      padding: clamp(28px, 4vw, 44px);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .form-head h2 {
      margin: 0;
      font-size: 31px;
      letter-spacing: -0.03em;
      font-family: "Space Grotesk", sans-serif;
      color: #102540;
    }

    .form-head p {
      margin: 8px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }

    .alert {
      display: none;
      margin-top: 18px;
      margin-bottom: 6px;
      border-radius: 12px;
      background: var(--danger-bg);
      color: var(--danger);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.45;
      padding: 12px 13px;
    }

    .alert.show {
      display: block;
    }

    .form-group {
      margin-top: 14px;
    }

    label {
      display: block;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-size: 11px;
      font-weight: 800;
      color: #3a5070;
    }

    input {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 13px;
      font-size: 14px;
      outline: none;
      transition: border-color 0.16s, box-shadow 0.16s;
      color: var(--text);
      font-family: "Manrope", "Segoe UI", sans-serif;
    }

    input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(27, 143, 122, 0.14);
    }

    .password-wrap {
      position: relative;
    }

    .password-wrap input {
      padding-right: 90px;
    }

    .show-pass {
      position: absolute;
      right: 8px;
      top: 8px;
      border: 0;
      border-radius: 9px;
      background: #edf2f8;
      color: #2d4565;
      font-size: 12px;
      padding: 7px 10px;
      font-weight: 800;
      cursor: pointer;
    }

    .button {
      margin-top: 18px;
      width: 100%;
      border: 0;
      border-radius: 12px;
      padding: 13px 15px;
      font-size: 15px;
      font-weight: 800;
      color: #ffffff;
      background: var(--primary);
      cursor: pointer;
      transition: background 0.16s, transform 0.08s, opacity 0.16s;
      font-family: "Manrope", "Segoe UI", sans-serif;
    }

    .button:hover {
      background: var(--primary-hover);
    }

    .button:active {
      transform: translateY(1px);
    }

    .button:disabled {
      opacity: 0.72;
      cursor: not-allowed;
    }

    .note {
      margin-top: 20px;
      padding-top: 16px;
      border-top: 1px solid #e8edf5;
      color: #5f7392;
      font-size: 12px;
      line-height: 1.6;
    }

    @media (max-width: 920px) {
      .login-shell {
        grid-template-columns: 1fr;
      }

      .brand-panel {
        min-height: auto;
        gap: 34px;
      }
    }

