.login-page {
  background: #fff;
  color: #06121d;
  font-family: var(--font-family);
}

.login-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}

.login-page .auth-flow-header {
  flex: 0 0 auto;
}

.login-page .auth-flow-header__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-page .auth-flow-header__home span {
  --auth-flow-arrow-offset: 4px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
}

.login-page .auth-flow-header__home span::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.25 4.5L6.75 9L11.25 13.5M7.5 9H15' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.25 4.5L6.75 9L11.25 13.5M7.5 9H15' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.login-page .auth-flow-header__home span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: var(--auth-flow-arrow-offset);
  height: 1px;
  background: currentColor;
  transform: scaleY(0.6);
  transform-origin: center bottom;
}

.login-page .auth-flow-header__home:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.login-main {
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-shell {
  display: flex;
  justify-content: center;
  width: min(1280px, 100%);
  padding: 64px 24px 40px;
}

.auth-area,
.auth-con {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  width: 100%;
  padding: 40px 36px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.auth-title {
  margin: 0 0 8px;
  color: #06121d;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.auth-subtitle {
  margin: 0 0 28px;
  color: #64748b;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  color: #06121d;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.auth-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #06121d;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.auth-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.auth-inline-link {
  align-self: flex-end;
  margin-top: 4px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn.is-loading,
.btn.is-loading:disabled {
  cursor: wait;
  opacity: 0.88;
}

.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-loading-spin 0.75s linear infinite;
}

@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
}

.btn-oauth {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #06121d;
}

.btn-oauth:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.btn-oauth svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-notice {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 13px;
  line-height: 1.5;
}

.oauth-alert {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}

.oauth-alert svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-notice svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-footer-text {
  margin: 24px 0 0;
  color: #64748b;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

.auth-footer-text a {
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
}

.auth-footer-text a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.login-footer {
  flex: 0 0 auto;
  border-top: 1px solid #f3f4f6;
}

.login-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  min-height: 72px;
  margin: 0 auto;
  padding: 20px 30px;
}

.login-footer p,
.login-footer a {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
}

.login-footer nav {
  display: flex;
  gap: 20px;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-status {
  min-height: 18px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.login-status:empty {
  display: none;
}

.login-status.is-error {
  color: #e53935;
}

.login-status.is-success {
  color: #059669;
}

@media (max-width: 768px) {
  .login-shell {
    padding: 48px 16px 32px;
  }

  .login-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .login-page .auth-flow-header__home {
    min-height: 36px;
    padding: 0 16px;
  }

  .login-shell {
    padding-top: 36px;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .auth-title {
    font-size: 22px;
  }
}
