/* Auth page specific styles
   Reuses variables and base styles from home.css
*/

.auth-main {
    min-height: calc(100vh - 72px - 210px); /* header + footer approx */
    display: flex;
    align-items: stretch;
    background: radial-gradient(
        circle at 0% 0%,
        #e3fdf9 0,
        #f7f7fb 40%,
        #ffffff 100%
      );
  }
  
  .auth-hero {
    position: relative;
    width: 100%;
    padding: 3.8rem 0 4.5rem;
    overflow: hidden;
  }
  
  .auth-hero-bg {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.45;
    filter: blur(1px);
  }
  
  .auth-hero-bg-1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(
      circle,
      rgba(47, 61, 143, 0.16),
      transparent 60%
    );
    top: -40px;
    right: -20px;
  }
  
  .auth-hero-bg-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(
      circle,
      rgba(0, 169, 165, 0.2),
      transparent 65%
    );
    bottom: -80px;
    left: -40px;
  }
  
  .auth-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.4rem;
    align-items: center;
  }
  
  /* Left copy side */
  
  .auth-copy h1 {
    margin: 1.1rem 0 0.7rem;
    font-size: clamp(2rem, 2.4vw + 1.4rem, 2.7rem);
    letter-spacing: -0.02em;
    color: #101827;
  }
  
  .auth-subtitle {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.96rem;
    max-width: 520px;
  }
  
  .auth-bullets {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .auth-bullets li + li {
    margin-top: 0.25rem;
  }
  
  /* Auth card */
  
  .auth-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.6rem 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(224, 227, 239, 0.9);
    max-width: 420px;
    margin-left: auto;
  }
  
  .auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: #f3f4ff;
    margin-bottom: 1.2rem;
  }
  
  .auth-tab {
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.45rem 0.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition),
      box-shadow var(--transition), transform 0.12s ease;
  }
  
  .auth-tab.is-active {
    background: #ffffff;
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(15, 35, 52, 0.15);
    transform: translateY(-0.5px);
  }
  
  .auth-panels {
    margin-top: 0.4rem;
  }
  
  .auth-panel {
    display: block;
  }
  
  .auth-panel.is-hidden {
    display: none;
  }
  
  .auth-panel-header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
  }
  
  .auth-panel-header p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
  }
  
  /* Forms */
  
  .form-field {
    margin-bottom: 0.85rem;
  }
  
  .form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #111827;
  }
  
  .form-field input,
  .form-field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: #f9fafb;
    transition: border-color var(--transition),
      box-shadow var(--transition),
      background var(--transition);
  }
  
  .form-field input::placeholder {
    color: #a1a7b8;
  }
  
  .form-field input:focus,
  .form-field select:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 169, 165, 0.12);
  }
  
  /* Meta row */
  
  .auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.2rem 0 0.9rem;
  }
  
  .checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
  }
  
  .checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }
  
  /* Link button for tab switching */
  
  .link-button {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
  }
  
  .link-button:hover {
    opacity: 0.9;
  }
  
  /* Submit button */
  
  .auth-submit {
    width: 100%;
    margin-top: 0.2rem;
  }
  
  .auth-alt {
    margin: 0.8rem 0 0;
    font-size: 0.84rem;
    text-align: center;
    color: var(--text-muted);
  }
  
  /* Responsive */
  
  @media (max-width: 960px) {
    .auth-inner {
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
      gap: 1.8rem;
    }
  
    .auth-card {
      max-width: 380px;
    }
  }
  
  @media (max-width: 768px) {
    .auth-main {
      min-height: auto;
    }
  
    .auth-hero {
      padding-top: 3.2rem;
      padding-bottom: 3.6rem;
    }
  
    .auth-inner {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .auth-card {
      margin: 1.2rem auto 0;
      width: 100%;
    }
  
    .auth-copy {
      max-width: 520px;
    }
  }
  
  @media (max-width: 480px) {
    .auth-card {
      padding: 1.3rem 1.1rem 1.5rem;
    }
  
    .auth-tabs {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.25rem;
    }
  
    .auth-tab {
      font-size: 0.8rem;
      padding: 0.38rem 0.1rem;
    }
  
    .auth-meta-row {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  