   :root {
      --primary: #4a2d8b;
      --primary-light: #6a4da8;
      --accent: #ff6b00;
      --white: #ffffff;
      --gray: #f5f7fa;
      --text: #333333;
      --light-text: #6c757d;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
      background: linear-gradient(rgba(74, 45, 139, 0.85), rgba(74, 45, 139, 0.9)), 
                  url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') no-repeat center center fixed;
      background-size: cover;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--text);
    }

    .container {
      background-color: var(--white);
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      width: 100%;
      max-width: 480px;
      padding: 40px;
      margin: 20px;
      transition: all 0.3s ease;
    }

    .container:hover {
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

    .logo {
      text-align: center;
      margin-bottom: 30px;
    }

    .logo img {
      height: 80px;
      transition: transform 0.3s ease;
    }

    .logo img:hover {
      transform: scale(1.05);
    }

    h2 {
      color: var(--primary);
      text-align: center;
      margin-bottom: 30px;
      font-size: 1.8rem;
      font-weight: 600;
    }

    .tabs {
      display: flex;
      margin-bottom: 30px;
      border-bottom: 2px solid var(--gray);
    }

    .tab {
      flex: 1;
      text-align: center;
      padding: 12px;
      cursor: pointer;
      color: var(--light-text);
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
    }

    .tab.active {
      color: var(--primary);
      font-weight: 600;
    }

    .tab.active:after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 3px;
      background: var(--accent);
      border-radius: 3px 3px 0 0;
    }

    .tab:hover {
      color: var(--primary-light);
    }

    form {
      display: none;
      animation: fadeIn 0.5s ease;
    }

    form.active {
      display: block;
    }

    label {
      display: block;
      margin-bottom: 8px;
      color: var(--primary);
      font-weight: 500;
      font-size: 0.95rem;
    }

    input {
      width: 100%;
      padding: 14px 16px;
      margin-bottom: 20px;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    input:focus {
      border-color: var(--primary-light);
      box-shadow: 0 0 0 3px rgba(74, 45, 139, 0.1);
      outline: none;
    }

    button[type="submit"] {
      width: 100%;
      padding: 14px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-bottom: 20px;
    }

    button[type="submit"]:hover {
      background-color: var(--primary-light);
      transform: translateY(-2px);
    }

    .gosuslugi-btn {
      width: 100%;
      padding: 12px;
      background-color: white;
      color: #333;
      border: 1px solid #ddd;
      border-radius: 8px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .gosuslugi-btn:hover {
      background-color: #f5f5f5;
      border-color: #ccc;
    }

    .gosuslugi-icon {
      height: 24px;
    }

    .forgot-password {
      text-align: center;
      margin-top: 20px;
    }

    .forgot-password a {
      color: var(--primary-light);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .forgot-password a:hover {
      color: var(--primary);
      text-decoration: underline;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 576px) {
      .container {
        padding: 30px 20px;
        margin: 15px;
      }

      h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
      }

      .logo img {
        height: 60px;
      }
    }


    