:root {
      --bg: #0f1319;
      --panel-a: #11161d;
      --panel-b: #181e27;
      --panel-c: #151a22;
      --text: rgba(255,255,255,0.96);
      --muted: rgba(255,255,255,0.58);
      --button: #4f46e5;
      --button-hover: #6366f1;
      --button-text: #ffffff;
      --danger: #ef4444;
      --shadow: 0 30px 80px rgba(0,0,0,0.28);
      --border: rgba(255,255,255,0.08);
      --border-strong: rgba(255,255,255,0.14);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html,
    body {
      min-height: 100%;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    .page {
      width: 100%;
      min-height: 100vh;
    }

    .signup-shell {
      position: relative;
      min-height: 100vh;
      overflow: hidden;
      background:
        radial-gradient(circle at 56% 24%, rgba(79, 70, 229, 0.14), transparent 18%),
        radial-gradient(circle at 73% 42%, rgba(255,255,255,0.05), transparent 14%),
        radial-gradient(circle at 28% 78%, rgba(84, 111, 194, 0.07), transparent 24%),
        linear-gradient(112deg, var(--panel-a) 0%, var(--panel-b) 38%, var(--panel-c) 72%, #12171e 100%);
      box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.03),
        inset 0 26px 90px rgba(255,255,255,0.02),
        inset 0 -60px 120px rgba(0,0,0,0.22);
    }

    .signup-shell::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at center, transparent 42%, rgba(0,0,0,0.16) 100%),
        linear-gradient(90deg, rgba(255,255,255,0.02), transparent 15%, transparent 85%, rgba(255,255,255,0.018));
      pointer-events: none;
    }

    .content {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 42px 24px 40px;
    }

    .left {
      width: 100%;
      max-width: 680px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,0.56);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-decoration: none;
      width: fit-content;
      margin-bottom: 40px;
    }

    .hero-title {
      font-size: 36px;
      line-height: 1.05;
      letter-spacing: -0.035em;
      font-weight: 800;
    }

    .hero-subtitle {
      margin-top: 10px;
      color: rgba(255,255,255,0.68);
      font-size: 17px;
      font-weight: 500;
      max-width: 560px;
    }

    .signup-card {
      margin-top: 30px;
      width: 100%;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      background: linear-gradient(180deg, rgba(17,17,19,0.94), rgba(17,17,19,0.86));
      box-shadow: var(--shadow);
      padding: 26px;
      backdrop-filter: blur(10px);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
    }

    .card-title {
      font-size: 18px;
      font-weight: 700;
      color: rgba(255,255,255,0.95);
    }

    .signup-form {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .field-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-width: 0;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    .field label {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.48);
      padding-left: 2px;
    }

    .input-wrap {
      position: relative;
      min-height: 54px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012));
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 16px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .input-wrap:focus-within {
      border-color: var(--border-strong);
      box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
      background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    }

    .login-input,
    .select-input {
      width: 100%;
      min-height: 52px;
      border: none;
      outline: none;
      background: transparent;
      color: rgba(255,255,255,0.88);
      font-size: 14px;
      font-weight: 500;
      font-family: inherit;
    }

    .login-input::placeholder,
    .select-input {
      color: rgba(255,255,255,0.42);
    }

    .select-input option {
      background: #111113;
      color: white;
    }

    .input-icon {
      width: 18px;
      height: 18px;
      color: rgba(255,255,255,0.42);
      flex: 0 0 auto;
    }

    .toggle-password {
      width: 18px;
      height: 18px;
      color: rgba(255,255,255,0.42);
      flex: 0 0 auto;
      cursor: pointer;
      background: transparent;
      border: none;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .toggle-password svg {
      width: 18px;
      height: 18px;
    }

    .toggle-password:hover {
      color: rgba(255,255,255,0.72);
    }

    .phone-wrap {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 12px;
    }

    .field-error {
      min-height: 16px;
      margin-top: 2px;
      font-size: 12px;
      font-weight: 600;
      color: var(--danger);
    }

    .terms-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: rgba(255,255,255,0.62);
      font-size: 13px;
      line-height: 1.45;
    }

    .terms-row input {
      margin-top: 2px;
      accent-color: #6366f1;
    }

    .terms-row a,
    .login-link {
      color: rgba(255,255,255,0.92);
      text-decoration: none;
      font-weight: 700;
    }

    .primary-btn {
      width: 100%;
      border: none;
      border-radius: 16px;
      height: 56px;
      padding: 0 22px;
      background: var(--button);
      color: var(--button-text);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.06em;
      cursor: pointer;
      text-transform: uppercase;
      box-shadow: 0 16px 28px rgba(0,0,0,0.18);
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .primary-btn:hover {
      transform: translateY(-1px);
      background: var(--button-hover);
      box-shadow: 0 18px 32px rgba(0,0,0,0.22);
    }

    .primary-btn:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 4px 0;
      color: rgba(255,255,255,0.44);
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.08);
    }

    .divider-text {
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .social-group {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    .btn-social {
      min-height: 54px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 16px;
      background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
      color: rgba(255,255,255,0.92);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
      text-decoration: none;
    }

    .btn-social:hover {
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.18);
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    }

    .btn-social svg,
    .btn-social img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex: 0 0 auto;
    }

    .login-text {
      color: rgba(255,255,255,0.6);
      font-size: 14px;
      font-weight: 500;
      text-align: center;
      margin-top: 2px;
    }

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active,
    textarea:-webkit-autofill,
    select:-webkit-autofill {
      -webkit-box-shadow: 0 0 0 1000px #11161d00 inset !important;
      -webkit-text-fill-color: #ffffff !important;
      caret-color: #ffffff !important;
      border-radius: inherit;
      transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
    }

    @media (max-width: 760px) {
      .content {
        padding: 24px 18px 30px;
      }

      .hero-title {
        font-size: 30px;
      }

      .hero-subtitle {
        font-size: 15px;
      }

      .signup-card {
        padding: 20px;
        border-radius: 20px;
      }

      .field-grid,
      .phone-wrap,
      .social-group {
        grid-template-columns: 1fr;
      }

      .back {
        margin-bottom: 28px;
      }

      .card-header {
        align-items: flex-start;
        flex-direction: column;
      }
    }