
    :root {
      --bg-main: #f5f7fa;
      --card-bg: #ffffff;
      --card-shadow: 0 14px 60px 0 rgba(0, 0, 0, 0.08), 0 1.5px 9px 0 rgba(0, 0, 0, 0.04);
      --blue-accent: #3494fa;
      --blue-hover: #2272c2;
      --border-radius: 22px;
      --text-primary: #1a1a1a;
      --text-secondary: #666;
      --border-color: #e0e4e8;
      --input-bg: #f8f9fb;
    }

    * {
      box-sizing: border-box;
    }

    html, body {
      margin: 0;
      padding: 0;
      width: 100vw;
      height: 100%;
      background: var(--bg-main);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      color: var(--text-primary);
      overflow-x: hidden;
    }

    .top-nav {
      position: relative;
      width: 100vw;
      min-width: 0;
      max-width: 100vw;
      box-sizing: border-box;
      height: 66px;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 38px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
      z-index: 10;
      overflow: hidden;
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 15px;
      font-weight: 800;
      font-size: 1.46rem;
      color: var(--blue-accent);
      user-select: none;
      white-space: nowrap;
    }

    .nav-logo img {
      width: 35px;
      height: 35px;
      border-radius: 9px;
      object-fit: cover;
    }

    .nav-menu {
      display: flex;
      gap: 24px;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-menu li a {
      color: var(--text-secondary);
      font-weight: 600;
      text-decoration: none;
      font-size: 1.09em;
      padding: 3.5px 0;
      transition: color 0.17s;
      position: relative;
    }

    .nav-menu li a.active,
    .nav-menu li a:hover {
      color: var(--blue-accent);
    }

    .nav-menu li a.active::after,
    .nav-menu li a:hover::after {
      content: '';
      display: block;
      margin: 0 auto;
      margin-top: 3px;
      width: 34%;
      height: 3px;
      border-radius: 3px;
      background: var(--blue-accent);
    }

    .main-bg {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: calc(100vh - 66px);
      padding: 40px 20px;
    }

    .login-card-outer {
      width: 100%;
      max-width: 920px;
      padding: 0 20px;
    }

    .login-card {
      background: var(--card-bg);
      border-radius: var(--border-radius);
      box-shadow: var(--card-shadow);
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      overflow: hidden;
      min-height: 560px;
    }

    .login-img-pane {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      position: relative;
      overflow: hidden;
    }

    .login-img-pane::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
      background-size: 50px 50px;
      opacity: 0.3;
    }

    .login-form-pane {
      padding: 50px 45px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .login-form-pane h2 {
      margin: 0 0 10px 0;
      font-size: 1.85rem;
      font-weight: 700;
      color: var(--text-primary);
    }

    .form-desc {
      margin-bottom: 28px;
      color: var(--text-secondary);
      font-size: 0.98rem;
      line-height: 1.5;
    }

    .error-message {
      background: #fee;
      color: #c33;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 20px;
      border: 1px solid #fcc;
      font-size: 0.95rem;
    }

    .success-message {
      background: #efe;
      color: #383;
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 20px;
      border: 1px solid #cfc;
      font-size: 0.95rem;
    }

    form label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      font-size: 0.95rem;
      color: var(--text-primary);
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="password"],
    form input[type="tel"],
    form input[type="number"],
    form textarea,
    form select {
      width: 100%;
      padding: 13px 16px;
      margin-bottom: 18px;
      border: 1.5px solid var(--border-color);
      border-radius: 10px;
      font-size: 1rem;
      background: var(--input-bg);
      color: var(--text-primary);
      transition: all 0.2s;
      font-family: inherit;
    }

    form input:focus,
    form textarea:focus,
    form select:focus {
      outline: none;
      border-color: var(--blue-accent);
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(52, 148, 250, 0.1);
    }

    form textarea {
      min-height: 100px;
      resize: vertical;
    }

    .password-strength {
      margin-top: -12px;
      margin-bottom: 18px;
    }

    .strength-bar {
      height: 5px;
      background: var(--border-color);
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 6px;
    }

    .strength-bar-fill {
      height: 100%;
      width: 0%;
      transition: all 0.3s;
      border-radius: 3px;
    }

    .strength-text {
      font-size: 0.85rem;
      font-weight: 600;
    }

    .strength-weak .strength-bar-fill {
      width: 33%;
      background: #f44336;
    }

    .strength-weak .strength-text {
      color: #f44336;
    }

    .strength-medium .strength-bar-fill {
      width: 66%;
      background: #ff9800;
    }

    .strength-medium .strength-text {
      color: #ff9800;
    }

    .strength-strong .strength-bar-fill {
      width: 100%;
      background: #4caf50;
    }

    .strength-strong .strength-text {
      color: #4caf50;
    }

    .file-upload-area {
      border: 2px dashed var(--border-color);
      border-radius: 10px;
      padding: 30px;
      text-align: center;
      margin-bottom: 18px;
      background: var(--input-bg);
      transition: all 0.2s;
      cursor: pointer;
    }

    .file-upload-area:hover {
      border-color: var(--blue-accent);
      background: #ffffff;
    }

    .file-upload-area.active {
      border-color: var(--blue-accent);
      background: rgba(52, 148, 250, 0.05);
    }

    .file-upload-label {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-bottom: 8px;
    }

    .file-upload-icon {
      font-size: 2.5rem;
      color: var(--blue-accent);
      margin-bottom: 10px;
    }

    .login-btn {
      width: 100%;
      padding: 14px;
      background: var(--blue-accent);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 1.05rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 10px;
    }

    .login-btn:hover {
      background: var(--blue-hover);
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(52, 148, 250, 0.3);
    }

    .login-btn:active {
      transform: translateY(0);
    }

    .bottom-link {
      text-align: center;
      margin-top: 20px;
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    .bottom-link a {
      color: var(--blue-accent);
      text-decoration: none;
      font-weight: 600;
    }

    .bottom-link a:hover {
      text-decoration: underline;
    }

    .progress-indicator {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-bottom: 30px;
    }

    .progress-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--border-color);
      transition: all 0.3s;
    }

    .progress-dot.active {
      background: var(--blue-accent);
      width: 30px;
      border-radius: 5px;
    }

    @media (max-width: 768px) {
      .top-nav {
        padding: 0 20px;
      }

      .nav-logo {
        font-size: 1.2rem;
      }

      .nav-menu {
        gap: 16px;
      }

      .nav-menu li a {
        font-size: 0.95em;
      }

      .login-card {
        grid-template-columns: 1fr;
      }

      .login-img-pane {
        display: none;
      }

      .login-form-pane {
        padding: 35px 25px;
      }

      .login-form-pane h2 {
        font-size: 1.5rem;
      }
    }




.role-login-buttons {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 14px 0;
}

.role-btn {
  flex: 1 1 0%;
  padding: 13px 0;
  font-size: 1.08rem;
  border-radius: 10px;
  border: 2px solid var(--blue-accent);
  font-family: inherit;
  font-weight: 700;
  color: var(--blue-accent);
  background: var(--input-bg);
  box-shadow: 0 2px 10px 0 rgba(52, 148, 250, 0.03);
  cursor: pointer;
  outline: none;
  margin: 0;
  transition: 
    background 0.2s, 
    color 0.2s, 
    border-color 0.2s, 
    box-shadow 0.2s, 
    transform 0.13s;
}

.role-btn:hover,
.role-btn.active {
  background: var(--blue-accent);
  color: #fff;
  border-color: var(--blue-hover);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(52, 148, 250, 0.11);
}
