/* =========================
   AUTH PAGE
========================= */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;

  min-height: calc(100vh - 180px);

  padding: 4rem 1.5rem;
}


/* =========================
   HEADER
========================= */

.auth-header {
  display: flex;
  justify-content: center;

  padding: 2rem 1.5rem 0;
}

.auth-header .logo img {
  width: 180px;
  height: auto;
}


/* =========================
   CARD
========================= */

.auth-card {
  width: 100%;
  max-width: 520px;

  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: 20px;

  padding: 3rem;

  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.auth-card h1 {
  margin-bottom: .75rem;

  text-align: center;

  font-size: 2rem;
  color: var(--text);
}

.auth-description {
  text-align: center;

  color: var(--text-muted);

  line-height: 1.7;

  margin-bottom: 2.5rem;
}


/* =========================
   FORM
========================= */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: .55rem;

  font-weight: 600;
  color: var(--text);
}

.form-group input {
  width: 100%;

  padding: .9rem 1rem;

  font-size: 1rem;

  color: var(--text);
  background: var(--bg);

  border: 1px solid var(--border);
  border-radius: 12px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(0, 123, 255, .12);
}


/* =========================
   PASSWORD HEADER
========================= */

.password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: .55rem;
}

.password-header label {
  margin: 0;
}

.forgot-password {
  font-size: .9rem;
  font-weight: 500;

  color: var(--primary);

  text-decoration: none;

  transition: color .2s ease;
}

.forgot-password:hover {
  text-decoration: underline;
}


/* =========================
   CHECKBOX
========================= */

.checkbox {
  display: flex;
  align-items: center;
  gap: .75rem;

  color: var(--text-muted);
  font-size: .95rem;
}

.checkbox input {
  width: 18px;
  height: 18px;

  cursor: pointer;
}


/* =========================
   BUTTON
========================= */

.auth-submit {
  width: 100%;
  margin-top: .5rem;
}


/* =========================
   FOOTER
========================= */

.auth-footer {
  margin-top: 2rem;

  text-align: center;

  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);

  font-weight: 600;

  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .auth-page {
    padding: 3rem 1rem;
  }

  .auth-card {
    padding: 2rem;
  }

  .auth-card h1 {
    font-size: 1.8rem;
  }

}

@media (max-width: 480px) {

  .auth-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .auth-card h1 {
    font-size: 1.6rem;
  }

  .auth-description {
    font-size: .95rem;
  }

  .password-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }

}