/* Auth & dashboard pages */

.auth-page {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f4f4f4;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
}

.auth-card--wide {
  max-width: 520px;
}

.auth-title {
  font-weight: 900;
  font-style: italic;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-form-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.phone-field[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

.form-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--red);
}

.btn-block {
  width: 100%;
  margin-top: 1.5rem;
}

.auth-footer-text {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer-text a {
  color: var(--red);
  font-weight: 700;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fde8ea;
  color: #a10f18;
  border: 1px solid #f5c2c7;
}

.alert-success {
  background: #e8f7ee;
  color: #1a6b3a;
  border: 1px solid #b8e6c8;
}

.dashboard-welcome {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.header-user {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-user {
    display: none;
  }
}
