*, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary: #6C3AED;
      --primary-light: #8B5CF6;
      --primary-dark: #5B21B6;
      --accent: #F59E0B;
      --accent-light: #FCD34D;
      --bg: #F5F3FF;
      --surface: #FFFFFF;
      --surface-hover: #FAFAFE;
      --text: #1E1B4B;
      --text-secondary: #6B7280;
      --text-muted: #9CA3AF;
      --border: #E5E7EB;
      --border-light: #F0EEF6;
      --border-focus: #6C3AED;
      --shadow-sm: 0 1px 2px rgba(108, 58, 237, 0.05);
      --shadow-md: 0 4px 24px rgba(108, 58, 237, 0.08);
      --shadow-lg: 0 12px 48px rgba(108, 58, 237, 0.12);
      --shadow-xl: 0 24px 64px rgba(108, 58, 237, 0.16);
      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 24px;
      --radius-xl: 32px;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body {
      font-family: 'Onest', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      overflow: hidden;
    }

    .auth-container {
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    .auth-form-side {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      position: relative;
      background: var(--bg);
    }

    .auth-lang-switch {
      position: absolute;
      top: 24px;
      left: 24px;
      z-index: 2;
    }

    .lang-switch {
      display: flex;
      align-items: center;
      padding: 3px;
      background: var(--surface);
      border: 1px solid var(--border-light);
      border-radius: 50px;
      flex-shrink: 0;
    }

    .lang-btn {
      border: none;
      background: transparent;
      font-family: inherit;
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      padding: 6px 10px;
      border-radius: 50px;
      cursor: pointer;
      transition: var(--transition);
      line-height: 1;
    }

    .lang-btn:hover { color: var(--primary); }

    .lang-btn.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 2px 6px rgba(108, 58, 237, 0.25);
    }

    .auth-form-side::before {
      content: '';
      position: absolute;
      top: -20%;
      left: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(108,58,237,0.06) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .auth-form-side::after {
      content: '';
      position: absolute;
      bottom: -10%;
      right: 5%;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(245,158,11,0.05) 0%, transparent 70%);
      border-radius: 50%;
      pointer-events: none;
    }

    .auth-form-wrapper {
      width: 100%;
      max-width: 440px;
      position: relative;
      z-index: 1;
    }

    .auth-form-header { margin-bottom: 36px; }

    .auth-form-header h1 {
      font-size: 32px;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }

    .auth-form-header p {
      font-size: 15px;
      color: var(--text-secondary);
      font-weight: 400;
    }

    .auth-tabs {
      display: flex;
      background: var(--surface);
      border-radius: var(--radius-md);
      padding: 5px;
      margin-bottom: 32px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
    }

    .auth-tabs.hidden { display: none; }

    .auth-tab {
      flex: 1;
      padding: 12px 20px;
      border: none;
      background: transparent;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: pointer;
      border-radius: var(--radius-sm);
      transition: var(--transition);
      position: relative;
    }

    .auth-tab:hover { color: var(--primary); }

    .auth-tab.active {
      background: var(--primary);
      color: white;
      box-shadow: 0 2px 8px rgba(108, 58, 237, 0.3);
    }

    .auth-form { display: none; animation: fadeSlideIn 0.4s ease; }
    .auth-form.active { display: block; }

    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .form-group { margin-bottom: 20px; }

    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }

    .input-wrapper { position: relative; }

    .input-wrapper i.ph-field {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      color: var(--text-muted);
      transition: var(--transition);
      pointer-events: none;
    }

    .form-input {
      width: 100%;
      padding: 14px 16px 14px 48px;
      border: 2px solid var(--border);
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 14px;
      font-weight: 400;
      color: var(--text);
      background: var(--surface);
      transition: var(--transition);
      outline: none;
    }

    .form-input::placeholder { color: var(--text-muted); font-weight: 300; }

    .form-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(108, 58, 237, 0.1);
    }

    .form-input:focus ~ i.ph-field { color: var(--primary); }

    .input-wrapper .toggle-password {
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 18px;
      padding: 0;
      transition: var(--transition);
      pointer-events: auto;
    }

    .toggle-password:hover { color: var(--primary); }

    .form-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
    }

    .checkbox-wrapper {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    .checkbox-wrapper input[type="checkbox"] { display: none; }

    .custom-checkbox {
      width: 20px;
      height: 20px;
      border: 2px solid var(--border);
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      flex-shrink: 0;
    }

    .custom-checkbox i {
      font-size: 12px;
      color: white;
      opacity: 0;
      transform: scale(0);
      transition: var(--transition);
    }

    .checkbox-wrapper input:checked ~ .custom-checkbox {
      background: var(--primary);
      border-color: var(--primary);
    }

    .checkbox-wrapper input:checked ~ .custom-checkbox i {
      opacity: 1;
      transform: scale(1);
    }

    .checkbox-wrapper span { font-size: 13px; color: var(--text-secondary); font-weight: 400; }

    .forgot-link {
      font-size: 13px;
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
    }

    .forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

    .back-to-login {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 24px;
      font-size: 14px;
      color: var(--text-secondary);
      text-decoration: none;
      font-weight: 500;
      transition: var(--transition);
    }

    .back-to-login:hover { color: var(--primary); }
    .back-to-login i { font-size: 16px; }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 28px;
      border: none;
      border-radius: var(--radius-sm);
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
      position: relative;
      overflow: hidden;
    }

    .btn::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
      pointer-events: none;
    }

    .btn-primary {
      width: 100%;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(108, 58, 237, 0.3);
      padding: 16px 28px;
      font-size: 15px;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(108, 58, 237, 0.4);
    }

    .btn-primary:active { transform: translateY(0); }
    .btn-primary i { font-size: 18px; }

    /* RIGHT PANEL — оригинальный премиум-стиль */
    .auth-info-side {
      flex: 1;
      background: linear-gradient(145deg, #6C3AED 0%, #4F46E5 40%, #7C3AED 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 60px;
      position: relative;
      overflow: hidden;
    }

    .auth-info-side::before {
      content: '';
      position: absolute;
      top: -30%;
      right: -20%;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 60%);
      border-radius: 50%;
    }

    .auth-info-side::after {
      content: '';
      position: absolute;
      bottom: -20%;
      left: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 60%);
      border-radius: 50%;
    }

    .info-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
    }

    .info-content {
      position: relative;
      z-index: 1;
      text-align: center;
      max-width: 480px;
    }

    .info-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      margin-bottom: 48px;
    }

    .info-logo-icon {
      width: 56px;
      height: 56px;
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(10px);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,255,255,0.2);
    }

    .info-logo-icon i { font-size: 28px; color: var(--accent-light); }

    .info-logo-text {
      font-size: 28px;
      font-weight: 800;
      color: white;
      letter-spacing: -0.5px;
    }

    .info-title {
      font-size: 40px;
      font-weight: 800;
      color: white;
      line-height: 1.15;
      margin-bottom: 20px;
      letter-spacing: -1px;
    }

    .info-title span { color: var(--accent-light); }

    .info-description {
      font-size: 16px;
      color: rgba(255,255,255,0.7);
      line-height: 1.7;
      margin-bottom: 48px;
      font-weight: 300;
    }

    .info-features {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .info-feature {
      display: flex;
      align-items: center;
      gap: 16px;
      background: rgba(255,255,255,0.08);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: var(--radius-md);
      padding: 18px 24px;
      text-align: left;
      transition: var(--transition);
    }

    .info-feature:hover {
      background: rgba(255,255,255,0.12);
      transform: translateX(6px);
    }

    .info-feature-icon {
      width: 44px;
      height: 44px;
      background: rgba(245,158,11,0.2);
      border-radius: var(--radius-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .info-feature-icon i { font-size: 20px; color: var(--accent-light); }

    .info-feature-text h4 {
      font-size: 14px;
      font-weight: 700;
      color: white;
      margin-bottom: 3px;
    }

    .info-feature-text p {
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      font-weight: 300;
    }

    .floating-shape {
      position: absolute;
      border-radius: 50%;
      opacity: 0.06;
      background: white;
      pointer-events: none;
    }

    .floating-shape:nth-child(1) {
      width: 300px; height: 300px;
      top: -80px; right: -60px;
      animation: float1 8s ease-in-out infinite;
    }

    .floating-shape:nth-child(2) {
      width: 200px; height: 200px;
      bottom: -40px; left: 10%;
      animation: float2 10s ease-in-out infinite;
    }

    .floating-shape:nth-child(3) {
      width: 150px; height: 150px;
      top: 40%; left: -40px;
      animation: float3 7s ease-in-out infinite;
    }

    @keyframes float1 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(-20px, 30px) scale(1.05); }
    }

    @keyframes float2 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(20px, -20px) scale(1.1); }
    }

    @keyframes float3 {
      0%, 100% { transform: translate(0, 0); }
      50% { transform: translate(15px, 25px); }
    }

    @media (max-width: 1024px) {
      .auth-info-side { display: none; }
      .auth-form-side { padding: 30px; }
    }

    @media (max-width: 480px) {
      .auth-form-side { padding: 20px; }
      .auth-lang-switch { top: 16px; left: 16px; }
      .auth-form-header h1 { font-size: 26px; }
    }

    .info-legal-links {
      position: absolute;
      bottom: 24px;
      left: 0;
      right: 0;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 6px 10px;
      padding: 0 24px;
    }

    .info-legal-link {
      border: none;
      background: none;
      padding: 0;
      font-family: inherit;
      font-size: 12px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.72);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: var(--transition);
    }

    .info-legal-link:hover {
      color: #fff;
    }

    .info-legal-sep {
      color: rgba(255, 255, 255, 0.35);
      font-size: 12px;
      user-select: none;
    }

    .auth-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(30, 27, 75, 0.45);
      backdrop-filter: blur(4px);
      z-index: 100;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .auth-modal-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .auth-legal-modal {
      width: 100%;
      max-width: 640px;
      max-height: min(85vh, 760px);
      background: var(--surface);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-xl);
      transform: translateY(16px) scale(0.98);
      transition: var(--transition);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .auth-modal-overlay.open .auth-legal-modal {
      transform: translateY(0) scale(1);
    }

    .auth-legal-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding: 20px 20px 0;
      flex-shrink: 0;
    }

    .auth-legal-modal-header h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.3;
    }

    .auth-legal-modal-close {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: var(--transition);
    }

    .auth-legal-modal-close:hover {
      color: var(--primary);
      border-color: rgba(108, 58, 237, 0.25);
    }

    .auth-legal-modal-body {
      padding: 16px 20px 24px;
      overflow-y: auto;
    }

    .legal-content {
      font-size: 13px;
      line-height: 1.65;
      color: var(--text-secondary);
    }

    .legal-content h4 {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin: 20px 0 8px;
    }

    .legal-content h4:first-child {
      margin-top: 0;
    }

    .legal-content p {
      margin-bottom: 10px;
    }

    .legal-content ul {
      margin: 0 0 10px 18px;
    }

    .legal-content li {
      margin-bottom: 4px;
    }

    .legal-tariff-list {
      list-style: none;
      margin: 0 0 12px;
      padding: 0;
    }

    .legal-tariff-list li {
      display: flex;
      align-items: baseline;
      gap: 8px;
      padding: 10px 12px;
      margin-bottom: 8px;
      background: var(--bg);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-sm);
    }

    .legal-tariff-list strong {
      min-width: 72px;
      color: var(--primary);
      font-weight: 700;
    }

    .field-error {
      font-size: 11px;
      color: #EF4444;
      margin-top: 5px;
    }

    .form-input.invalid {
      border-color: #EF4444;
    }
