:root {
    --ms-bg-1: #071126;
    --ms-bg-2: #0b1f3f;
    --ms-card: rgba(8, 22, 46, 0.78);
    --ms-border: rgba(106, 227, 176, 0.24);
    --ms-accent: #36d39a;
    --ms-accent-2: #6cf0c0;
    --ms-text: #f5fbff;
    --ms-muted: #b9c7d8;
    --ms-danger: #ff7d87;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, sans-serif;
    color: var(--ms-text);
    background:
      radial-gradient(circle at 15% 10%, rgba(54, 211, 154, 0.16), transparent 45%),
      radial-gradient(circle at 80% 90%, rgba(108, 240, 192, 0.12), transparent 38%),
      linear-gradient(150deg, var(--ms-bg-1), var(--ms-bg-2));
    display: grid;
    place-items: center;
    padding: 24px;
  }
  
  .auth-shell {
    width: 100%;
    max-width: 430px;
  }
  
  .auth-card {
    background: var(--ms-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--ms-border);
    border-radius: 20px;
    padding: 28px 24px 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
  
  .auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  
  .auth-brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--ms-accent), var(--ms-accent-2));
    box-shadow: 0 0 18px rgba(54, 211, 154, 0.7);
  }
  
  .auth-brand-name {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
  }
  
  .auth-subtitle {
    margin: 0 0 20px;
    color: var(--ms-muted);
    font-size: 0.95rem;
  }
  
  .auth-form .form-group {
    margin-bottom: 14px;
  }
  
  .auth-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d5e3f3;
  }
  
  .auth-form input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(151, 168, 191, 0.3);
    background: rgba(8, 18, 38, 0.75);
    color: #fff;
    padding: 12px 13px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
  }
  
  .auth-form input:focus {
    border-color: var(--ms-accent);
    box-shadow: 0 0 0 3px rgba(54, 211, 154, 0.2);
  }
  
  .form-error {
    min-height: 20px;
    color: var(--ms-danger);
    font-size: 0.88rem;
    margin: 2px 0 10px;
  }
  
  .auth-submit-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    color: #022115;
    background: linear-gradient(145deg, var(--ms-accent), var(--ms-accent-2));
    transition: transform 0.14s ease, filter 0.14s ease;
  }
  
  .auth-submit-btn:hover {
    filter: brightness(1.04);
  }
  
  .auth-submit-btn:active {
    transform: translateY(1px);
  }
  
  .auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  .auth-switch {
    margin: 14px 0 0;
    text-align: center;
    color: var(--ms-muted);
    font-size: 0.92rem;
  }
  
  .auth-switch a {
    color: var(--ms-accent-2);
    text-decoration: none;
    font-weight: 600;
  }
  
  .auth-switch a:hover {
    text-decoration: underline;
  }

  .form-success {
    min-height: 20px;
    color: #72f4c6;
    font-size: 0.88rem;
    margin: 2px 0 10px;
  }

  .auth-note {
    color: var(--ms-muted);
    font-size: 0.92rem;
    margin: 0 0 10px;
    line-height: 1.45;
  }

  .password-field {
    position: relative;
  }
  
  .password-field input {
    padding-right: 46px;
  }
  
  .password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #cfe0f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
  }
  
  .password-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }
  
  .password-toggle:focus-visible {
    outline: 2px solid rgba(54, 211, 154, 0.7);
    outline-offset: 2px;
  }
  
  .password-toggle svg {
    width: 18px;
    height: 18px;
  }