:root {
      --bg-deep: #0a1018;
      --bg-surface: #131c29;
      --bg-card: #1a2533;
      --accent: #4884ff;
      --accent-hover: #5a90ff;
      --green: #3acf6b;
      --red: #ff4757;
      --yellow: #ffb347;
      --text-primary: #eef2f6;
      --text-muted: #8aa2c0;
      --border-default: #ffffff15;
      --border-accent: #4884ff40;
      --radius-sm: 16px;
      --radius-md: 22px;
      --radius-pill: 60px;
      font-family: 'Inter', sans-serif;
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body {
      background: radial-gradient(ellipse at 50% 0%, #131c29 0%, #0a1018 70%);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 300;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      position: relative;
    }

    /* Частицы */
    .particles {
      position: fixed;
      top:0; left:0; width:100%; height:100%;
      z-index:0;
      pointer-events: none;
    }
    .particle {
      position: absolute;
      background: var(--accent);
      border-radius: 50%;
      opacity: 0.15;
      animation: particleFloat 15s infinite ease-in-out;
    }
    @keyframes particleFloat {
      0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.1; }
      50% { transform: translateY(-80px) translateX(30px) scale(1.8); opacity: 0.3; }
      100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.1; }
    }

    .auth-wrapper {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 500px;
      padding: 20px;
      perspective: 1000px;
    }

    .auth-card {
      background: rgba(19, 28, 41, 0.7);
      backdrop-filter: blur(20px);
      border-radius: var(--radius-md);
      padding: 36px 32px;
      border: 1px solid var(--border-default);
      box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(72,132,255,0.1) inset;
      transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s;
    }
    .auth-card:hover {
      box-shadow: 0 35px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(72,132,255,0.25) inset;
    }

    .logo {
      text-align: center;
      margin-bottom: 28px;
    }
    .auth-logo {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      text-decoration: none;
      color: inherit;
      max-width: 100%;
    }
    .auth-logo .site-logo-img {
      max-width: min(240px, 100%);
      width: auto;
      object-fit: contain;
      display: block;
    }
    .auth-logo .site-logo-text {
      display: inline-flex;
      align-items: baseline;
    }
    .logo .go,
    .logo .logo-go {
      font-size: 2.4rem;
      font-weight: 700;
      background: linear-gradient(135deg, var(--green), #2ecc71);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.02em;
    }
    .logo .script,
    .logo .logo-script {
      font-size: 2.4rem;
      font-weight: 200;
      background: linear-gradient(135deg, var(--accent), #82a4ff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.02em;
    }

    .tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 28px;
      background: var(--bg-card);
      border-radius: var(--radius-pill);
      padding: 4px;
    }
    .tab-btn {
      flex:1;
      background: transparent;
      border: none;
      color: var(--text-muted);
      padding: 10px 0;
      font-size: 0.95rem;
      font-weight: 500;
      cursor: pointer;
      border-radius: var(--radius-pill);
      transition: 0.25s;
      position: relative;
    }
    .tab-btn.active {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 4px 12px rgba(72,132,255,0.3);
    }

    .form-panel {
      display: none;
      animation: panelIn 0.35s ease;
    }
    .form-panel.active {
      display: block;
    }
    @keyframes panelIn {
      from { opacity:0; transform: translateY(8px); }
      to { opacity:1; transform: translateY(0); }
    }

    .input-group {
      margin-bottom: 18px;
      position: relative;
    }
    .input-group .icon {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 1rem;
      transition: 0.2s;
    }
    .input-group input:focus ~ .icon,
    .input-group input:valid ~ .icon {
      color: var(--accent);
    }
    .input-group input {
      width: 100%;
      background: var(--bg-card);
      border: 1px solid var(--border-default);
      color: #fff;
      padding: 14px 16px 14px 48px;
      border-radius: var(--radius-sm);
      font-size: 0.95rem;
      outline: none;
      transition: 0.2s;
      letter-spacing: 0.01em;
    }
    .input-group input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(72,132,255,0.12);
    }

    .password-strength-wrap {
      margin: -8px 0 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .password-strength-bar {
      flex:1;
      height: 5px;
      background: #ffffff10;
      border-radius: 6px;
      overflow: hidden;
    }
    .strength-fill {
      height: 100%;
      width: 0%;
      background: var(--red);
      transition: width 0.3s, background 0.3s;
    }
    .strength-label {
      font-size: 0.7rem;
      opacity: 0.7;
      min-width: 70px;
    }

    .role-selector {
      display: flex;
      gap: 10px;
      margin-bottom: 18px;
    }
    .role-btn {
      flex:1;
      background: var(--bg-card);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-sm);
      padding: 12px 8px;
      text-align: center;
      cursor: pointer;
      transition: 0.2s;
      color: var(--text-muted);
    }
    .role-btn i {
      display: block;
      font-size: 1.4rem;
      margin-bottom: 6px;
    }
    .role-btn.selected {
      border-color: var(--accent);
      background: rgba(72,132,255,0.1);
      color: #fff;
    }

    .btn-submit {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, var(--accent), #3a6fd8);
      border: none;
      color: #fff;
      font-size: 1rem;
      font-weight: 500;
      border-radius: var(--radius-pill);
      cursor: pointer;
      transition: 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 8px;
      letter-spacing: 0.02em;
    }
    .btn-submit:hover {
      box-shadow: 0 12px 28px rgba(72,132,255,0.4);
      transform: translateY(-2px);
    }

    .btn-submit:active {
      transform: scale(0.98);
    }

    .social-row {
      display: flex;
      gap: 12px;
      margin-top: 20px;
    }
    .social-btn {
      flex:1;
      padding: 12px 6px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-default);
      background: transparent;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: 0.2s;
      font-size: 0.85rem;
    }
    .social-btn:hover {
      border-color: var(--accent);
      background: #4884ff10;
    }

    .extra-links {
      text-align: center;
      margin-top: 18px;
      font-size: 0.8rem;
      opacity: 0.7;
    }
    .extra-links a {
      color: var(--accent);
      text-decoration: none;
      margin: 0 6px;
    }

    .checkbox-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 14px;
      font-size: 0.75rem;
      opacity: 0.8;
    }
    .checkbox-row input {
      margin-top: 3px;
    }

    @media (max-width:480px) {
      .auth-card { padding: 24px 18px; }
      .social-row { flex-wrap: wrap; }
    }