.auth-page-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #0f172a;
}

.auth-shell {
  min-height: 100vh;
  padding: 32px 16px;
}

.auth-shell-inner {
  max-width: 720px;
  margin: 0 auto;
}

.auth-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #0f172a;
}

.auth-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.auth-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand-fallback {
  font-weight: 800;
  font-size: 20px;
  color: #0f172a;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.auth-brand-text strong {
  font-size: 18px;
  color: #0f172a;
}

.auth-brand-text small {
  color: #64748b;
  font-size: 13px;
}

.auth-back-link {
  text-decoration: none;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.auth-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.auth-card-head {
  margin-bottom: 24px;
}

.auth-card-head h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.15;
  color: #0f172a;
}

.auth-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 17px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form .form-group {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-weight: 600;
  color: #0f172a;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.auth-form small {
  color: #64748b;
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  margin-top: 2px;
}

.auth-check input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

.auth-btn-primary {
  background: #0f172a;
  color: #fff;
}

.auth-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.auth-footer a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

.auth-card-wide {
  max-width: 860px;
}

.auth-inline-form {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .auth-shell {
    padding: 20px 14px;
  }

  .auth-brand-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card-head h1 {
    font-size: 32px;
  }

  .auth-actions {
    justify-content: stretch;
  }

  .auth-actions .auth-btn {
    width: 100%;
  }
}