* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #172033;
  background: #edf3f8;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 31, 54, 0.14);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0b7af3;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.auth-brand h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.15;
}

.auth-brand p {
  margin: 0;
  color: #607088;
  font-size: 14px;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 11px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.auth-alert--error {
  border: 1px solid #ffd2cd;
  background: #fff1ef;
  color: #b42318;
}

.auth-alert--success {
  border: 1px solid #b7ebc6;
  background: #edfdf3;
  color: #067647;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #c8d3e2;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  color: #111827;
  outline: none;
}

.auth-form input:focus {
  border-color: #0b7af3;
  box-shadow: 0 0 0 3px rgba(11, 122, 243, 0.14);
}

.auth-form-link {
  margin-top: -4px;
  text-align: right;
  font-size: 14px;
}

.auth-form-link a,
.auth-link-button {
  color: #0b7af3;
  font-weight: 800;
  text-decoration: none;
}

.auth-password-field {
  position: relative;
  display: block;
}

.auth-password-field input {
  padding-right: 44px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #607088;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: #eef4fb;
  color: #0b7af3;
}

.auth-primary,
.auth-google {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.auth-primary {
  margin-top: 4px;
  border: 1px solid #006ee6;
  background: #0b7af3;
  color: #fff;
}

.auth-primary:disabled {
  opacity: 0.72;
  cursor: progress;
}

.auth-google {
  border: 1px solid #c8d3e2;
  background: #fff;
  color: #344054;
}

.auth-google:hover {
  background: #f8fafc;
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #7a8699;
  font-size: 13px;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e5ebf3;
}

.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #607088;
}

.auth-switch a {
  color: #0b7af3;
  font-weight: 800;
  text-decoration: none;
}

.auth-otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 8px;
}

.auth-resend-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.auth-link-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.auth-link-button:disabled {
  color: #98a2b3;
  cursor: not-allowed;
}

.auth-countdown {
  color: #607088;
  font-size: 14px;
}
