.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);

  background-image: url("/assets/img/background_logo_nullble.png");
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.auth-brand__logo {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-on-surface);
  letter-spacing: -0.02em;
  text-decoration: none;
  font-family: var(--font-brand);
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}

.auth-header h1 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-on-surface);
  letter-spacing: -0.02em;
}

.auth-header p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-field__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-on-surface);
  letter-spacing: 0.03em;
}

.auth-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-on-surface);
  outline: none;
  transition: border-color var(--transition-fast);
}

.auth-field__input:focus {
  border-color: var(--color-on-surface);
}

.auth-field__input::placeholder {
  color: var(--color-muted-2);
}

.auth-field__input--with-toggle {
  padding-right: var(--space-10);
}

.auth-field__input.is-error {
  border-color: var(--color-danger);
}

.auth-field__toggle {
  position: absolute;
  right: var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  padding: var(--space-1);
}

.auth-field__toggle:hover {
  color: var(--color-on-surface);
}

.auth-field__toggle .material-symbols-rounded {
  font-size: 18px;
}

.auth-field__error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  font-weight: var(--weight-medium);
  display: none;
}

.auth-field__error.visible {
  display: block;
}

.auth-field__hint {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: var(--weight-regular);
}

.auth-forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(-1 * var(--space-2));
}

.auth-forgot a {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.auth-forgot a:hover {
  color: var(--color-on-surface);
}

.auth-submit {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-primary);
  color: var(--color-primary-fg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  margin-top: var(--space-2);
}

.auth-submit:hover {
  opacity: 0.88;
}

.auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.auth-divider__line {
  flex: 1;
  height: 1px;
  background-color: var(--color-border);
}

.auth-divider__text {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.login-with {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-google {
  width: 100%;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-brand);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.auth-google:hover {
  background-color: var(--color-surface-raised);
  border-color: var(--color-muted-2);
}

.auth-google__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-footer {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: var(--weight-regular);
}

.auth-footer a {
  color: var(--color-on-surface);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.auth-footer a:hover {
  opacity: 0.7;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  display: none;
}

.auth-alert.visible {
  display: flex;
}

.auth-alert--success {
  border-color: #bbf7d0;
  background-color: #f0fdf4;
}

.auth-alert--error {
  border-color: #fecaca;
  background-color: #fef2f2;
}

.auth-alert .material-symbols-rounded {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-alert--success .material-symbols-rounded { color: #16a34a; }
.auth-alert--error   .material-symbols-rounded { color: var(--color-danger); }

.auth-alert__text {
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: var(--weight-regular);
}

.auth-alert--success .auth-alert__text { color: #15803d; }
.auth-alert--error   .auth-alert__text { color: #b91c1c; }

.auth-strength {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.auth-strength__bars {
  display: flex;
  gap: var(--space-1);
}

.auth-strength__bar {
  flex: 1;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  transition: background-color var(--transition-base);
}

.auth-strength__bar.active-weak   { background-color: #ef4444; }
.auth-strength__bar.active-fair   { background-color: #f97316; }
.auth-strength__bar.active-good   { background-color: #eab308; }
.auth-strength__bar.active-strong { background-color: #22c55e; }

.auth-strength__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.auth-back:hover {
  color: var(--color-on-surface);
}

.auth-back .material-symbols-rounded {
  font-size: 18px;
}

.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.auth-step {
  width: 28px;
  height: 4px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

.auth-step--active {
  background-color: var(--color-on-surface);
}
