    /* ===== Базовые стили ===== */
    * {
      box-sizing: border-box;
    }

    body {
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      background-attachment: fixed;
      margin: 0;
      padding: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    /* Лёгкий тёмный оверлей поверх фона для читаемости */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background: linear-gradient(135deg, rgba(20, 30, 60, 0.35), rgba(60, 30, 80, 0.35));
      z-index: 0;
      pointer-events: none;
    }

    /* ===== Контейнер (glassmorphism) ===== */
    .login-container {
      position: relative;
      z-index: 1;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      border: 1px solid rgba(255, 255, 255, 0.4);
      border-radius: 20px;
      padding: 2.5rem 2.5rem 2rem;
      width: 100%;
      max-width: 460px;
      margin: 20px;
      box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      animation: containerAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    @keyframes containerAppear {
      from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .login-container h2 {
      margin: 0 0 1.5rem;
      font-size: 1.75rem;
      font-weight: 700;
      text-align: center;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -0.02em;
    }

    /* ===== Алерты ===== */
    .alert-danger {
      background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
      border-left: 4px solid #e53e3e;
      color: #742a2a;
      padding: 12px 16px;
      border-radius: 8px;
      margin-bottom: 1.25rem;
      font-size: 0.9rem;
      line-height: 1.5;
      animation: alertShake 0.4s ease-in-out;
    }

    .alert-danger a {
      color: #c53030;
      font-weight: 600;
      text-decoration: none;
      border-bottom: 1px dashed #c53030;
      transition: 0.2s;
    }

    .alert-danger a:hover {
      color: #9b2c2c;
      border-bottom-style: solid;
    }

    .alert-success {
      background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
      border-left: 4px solid #38a169;
      color: #22543d;
      padding: 16px 18px;
      border-radius: 8px;
      margin-bottom: 1.25rem;
      font-size: 0.92rem;
      line-height: 1.6;
      animation: successPulse 0.6s ease-out;
    }

    .alert-success a {
      color: #276749;
      font-weight: 600;
      text-decoration: none;
      border-bottom: 1px dashed #276749;
      transition: 0.2s;
    }

    .alert-success a:hover {
      color: #1c4532;
      border-bottom-style: solid;
    }

    @keyframes alertShake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-6px); }
      75% { transform: translateX(6px); }
    }

    @keyframes successPulse {
      0% {
        opacity: 0;
        transform: scale(0.95);
      }
      50% {
        transform: scale(1.02);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    /* ===== Форма ===== */
    .form-group {
      margin-bottom: 1.1rem;
      position: relative;
    }

    .form-group label {
      display: block;
      margin-bottom: 6px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #4a5568;
      letter-spacing: 0.01em;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
      width: 100%;
      padding: 12px 14px;
      font-size: 0.95rem;
      color: #2d3748;
      background: rgba(255, 255, 255, 0.9);
      border: 1.5px solid rgba(203, 213, 224, 0.8);
      border-radius: 10px;
      outline: none;
      transition: all 0.25s ease;
      font-family: inherit;
    }

    .form-group input:focus {
      border-color: #667eea;
      background: #fff;
      box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    }

    .form-group input::placeholder {
      color: #a0aec0;
    }

    .form-group input:invalid:not(:placeholder-shown):not(:focus) {
      border-color: #e53e3e;
    }

    /* ===== Обёртка пароля с иконкой ===== */
    .password-input-wrapper {
      position: relative;
    }

    .password-input-wrapper input {
      padding-right: 44px !important;
      font-family: 'Courier New', monospace;
      letter-spacing: 0.1em;
    }

    .password-input-wrapper input.obscure {
      letter-spacing: 0.25em;
    }

    .toggle-password {
      position: absolute;
      right: 10px;
      top: 30px;
      cursor: pointer;
      font-size: 1.1rem;
      user-select: none;
      opacity: 0.6;
      transition: opacity 0.2s, transform 0.2s;
      padding: 4px;
    }
	
    .toggle-password:hover {
      opacity: 1;
      transform: scale(1.15);
    }

    /* ===== Требования к паролю ===== */
    .password-requirements {
      margin-top: 8px;
      padding: 10px 12px;
      font-size: 0.78rem;
      line-height: 1.5;
      color: #718096;
      background: rgba(237, 242, 247, 0.6);
      border-left: 3px solid #667eea;
      border-radius: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .password-requirements::before {
      content: 'ℹ️';
      font-size: 0.9rem;
    }

    /* ===== Cloudflare Turnstile ===== */
    .cf-turnstile {
      display: flex;
      justify-content: center;
      margin: 1rem 0 0.5rem;
    }

    /* ===== Кнопка ===== */
    .btn-primary {
      width: 100%;
      padding: 13px 20px;
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.25s ease;
      letter-spacing: 0.02em;
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
      font-family: inherit;
      text-decoration: none;
      display: inline-block;
      text-align: center;
    }

    .btn-primary:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(102, 126, 234, 0.5);
      filter: brightness(1.05);
    }

    .btn-primary:active:not(:disabled) {
      transform: translateY(0);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    }

    .btn-primary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
      box-shadow: none;
    }

    /* Стилизованная кнопка "Авторизоваться" на странице успеха */
    .success-actions {
      text-align: center;
      margin-top: 2rem;
    }

    .success-actions .btn-primary {
      width: auto;
      padding: 12px 30px;
      display: inline-block;
    }

    /* ===== Ссылки снизу ===== */
    .links {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1.25rem;
      padding-top: 1.25rem;
      border-top: 1px solid rgba(203, 213, 224, 0.5);
      gap: 10px;
    }

    .links a {
      color: #667eea;
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 500;
      transition: 0.2s;
      padding: 4px 0;
    }

    .links a:hover {
      color: #5a67d8;
      text-decoration: underline;
    }

    /* ===== Модальное окно ===== */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      animation: modalFadeIn 0.25s ease-out;
    }

    @keyframes modalFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .modal-content {
      background-color: #fff;
      margin: 12% auto;
      padding: 0;
      border-radius: 16px;
      width: 90%;
      max-width: 450px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
      animation: modalSlideIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
      overflow: hidden;
    }

    @keyframes modalSlideIn {
      from {
        transform: translateY(-40px) scale(0.96);
        opacity: 0;
      }
      to {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .modal-header {
      padding: 20px 24px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h3 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
    }

    .close-modal {
      color: white;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.2s;
      line-height: 1;
      padding: 0 6px;
      border-radius: 6px;
    }

    .close-modal:hover {
      transform: scale(1.15) rotate(90deg);
      background: rgba(255, 255, 255, 0.15);
    }

    .modal-body {
      padding: 24px;
    }

    .contact-info {
      background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
      padding: 24px;
      border-radius: 12px;
      text-align: center;
      border: 1px solid rgba(203, 213, 224, 0.5);
    }

    .contact-info p {
      margin: 0 0 18px;
      font-size: 0.95rem;
      color: #4a5568;
      line-height: 1.5;
    }

    .contact-link {
      display: inline-block;
      padding: 11px 24px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white !important;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.25s ease;
      box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    }

    .contact-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(102, 126, 234, 0.5);
      filter: brightness(1.05);
    }

    .modal-footer {
      padding: 14px 24px;
      background: #f8f9fa;
      text-align: right;
      border-top: 1px solid #edf2f7;
    }

    .btn-close {
      padding: 8px 20px;
      background: #718096;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 0.9rem;
      font-weight: 500;
      font-family: inherit;
    }

    .btn-close:hover {
      background: #4a5568;
      transform: translateY(-1px);
    }

    /* ===== Адаптивность ===== */
    @media (max-width: 480px) {
      .login-container {
        padding: 1.75rem 1.5rem;
        margin: 12px;
        border-radius: 16px;
      }

      .login-container h2 {
        font-size: 1.5rem;
      }

      .links {
        flex-direction: column;
        gap: 8px;
      }

      .modal-content {
        margin: 20% auto;
        width: 92%;
      }
    }

    /* Плавный скроллбар */
    ::-webkit-scrollbar {
      width: 10px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.05);
    }
    ::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, #667eea, #764ba2);
      border-radius: 10px;
    }