*,
*::before,
*::after {
  box-sizing: border-box;
}


.auth-bg-shape {
  display: none;
}

.auth-page {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--text-primary);
  border-radius: 20px;
  padding: 2.25rem 2rem 2rem;
  border: 1px solid var(--text-secondary);
}

.auth-card-logo {
  margin: 0 0 1rem;
  text-align: center;
}

.auth-card-logo img {
  display: block;
  width: 135px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.auth-messages {
  margin-bottom: 1rem;
}

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--text-secondary);
}

.auth-alert--error {
  background: var(--text-primary);
  color: var(--text-tertiary);
  border-color: var(--text-secondary);
}

.auth-alert--success {
  background: var(--text-primary);
  color: var(--text-tertiary);
  border-color: var(--text-inverse);
}

.auth-alert--info {
  background: var(--text-primary);
  color: var(--text-tertiary);
  border-color: var(--surface-strong);
}

.auth-heading {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-align: center;
}

.auth-subtitle {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.auth-message {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-tertiary);
  text-align: center;
}

.auth-form-errors {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  border: 1px solid var(--text-secondary);
  background: var(--text-primary);
}

.auth-form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.btn-auth-green {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--text-inverse);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-auth-green:hover {
  background: var(--text-secondary);
  color: var(--text-primary);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--text-primary);
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.btn-google:hover {
  color: var(--text-tertiary);
  background: var(--text-primary);
  border-color: var(--text-inverse);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--text-secondary);
}

.auth-divider span {
  flex-shrink: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-field {
  margin-bottom: 1.1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  padding: 0.7rem 2.75rem 0.7rem 2.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  background: var(--text-primary);
  border: 1px solid var(--text-secondary);
  border-radius: 8px;
}

.auth-input-wrap input:focus {
  outline: 2px solid var(--surface-strong);
  outline-offset: 1px;
  border-color: var(--text-secondary);
}

.auth-toggle-pw {
  position: absolute;
  right: 0.75rem;
  z-index: 2;
  padding: 0.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  cursor: pointer;
}

.auth-link-muted {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-link-muted:hover {
  color: var(--text-inverse);
}

.auth-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.btn-auth-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--text-secondary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-auth-primary:hover {
  background: var(--text-inverse);
}

.auth-footer-text {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.auth-link {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--text-inverse);
}
