@import url('https://fonts.googleapis.com/css2?family=ABeeZee&display=swap');

.auth-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
  max-width: 480px;
  margin: 0 auto;
}

/* Login / Register — aligned with demo/login.demo */
.login-page {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  overflow-x: hidden;
  transition: background-color 0.3s;
}
.apmint-theme-dark .login-page {
  background: #1e1b4b;
}

.login-shell {
  width: 384px;
  max-width: 100%;
  min-height: min(800px, 100dvh);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f4f4f5;
  overflow: hidden;
  transition: background-color 0.3s;
}
.apmint-theme-dark .login-shell {
  background: #1e1b4b;
}

.login-spacer {
  width: 100%;
  height: 28px;
  flex-shrink: 0;
}

.login-back-row {
  width: 288px;
  height: 40px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
}
.login-back-row--lang {
  width: min(288px, calc(100% - 48px));
  justify-content: space-between;
}
.login-back-row--lang .lang-picker-wrap {
  position: relative;
}

.login-back-btn {
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
  border-radius: 15px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.login-back-btn:hover {
  opacity: 0.8;
}
.apmint-theme-dark .login-back-btn {
  background: #21234c;
}

.login-main {
  flex: 1;
  display: flex;
  justify-content: center;
}

.login-inner {
  width: 288px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 4px;
}

.login-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.login-title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 400;
  font-family: "ABeeZee", system-ui, sans-serif;
  color: #0f172a;
}
.apmint-theme-dark .login-title {
  color: #fff;
}

.login-subtitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  font-family: "ABeeZee", system-ui, sans-serif;
  color: #475569;
}
.apmint-theme-dark .login-subtitle {
  color: #ddd6fe;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.login-field {
  width: 100%;
  height: 56px;
  padding: 12px 28px;
  background: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.3s;
}
.apmint-theme-dark .login-field {
  background: #21234c;
}

.login-field--pwd {
  position: relative;
}

.login-field-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  color: #414663;
}
.apmint-theme-dark .login-field-icon {
  color: #fff;
}

.login-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  font-family: "ABeeZee", system-ui, sans-serif;
  color: #0f172a;
}
.apmint-theme-dark .login-field input {
  color: #fff;
}
.login-field input::placeholder {
  color: #d6d3d1;
}
.apmint-theme-dark .login-field input::placeholder {
  color: #ddd6fe;
}

.login-field--pwd input {
  padding-right: 36px;
}

.login-pwd-toggle {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-captcha-row {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}

.login-captcha-row .login-field {
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  padding-left: 28px;
  padding-right: 28px;
}

.login-captcha-box {
  width: 96px;
  height: 56px;
  flex: 0 0 96px;
  border-radius: 15px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-sizing: border-box;
}
.apmint-theme-dark .login-captcha-box {
  background: transparent;
}

.login-captcha-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.login-submit {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: none;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: 400;
  font-family: "ABeeZee", system-ui, sans-serif;
  color: #fff;
  transition: opacity 0.2s, background-color 0.2s;
}
.login-submit:disabled {
  background: #ddd6fe;
  cursor: not-allowed;
}
.apmint-theme-dark .login-submit:disabled {
  background: #e0dbfe;
  color: #fff;
}
.login-submit:not(:disabled) {
  background: #6366f1;
  cursor: pointer;
}
.apmint-theme-dark .login-submit:not(:disabled) {
  background: #6366f1;
}
.login-submit:not(:disabled):hover {
  opacity: 0.92;
}

.login-switch {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 1rem;
  font-family: "ABeeZee", system-ui, sans-serif;
}

.login-switch-hint {
  color: #475569;
  font-weight: 400;
}
.apmint-theme-dark .login-switch-hint {
  color: #ddd6fe;
}

.login-switch-action {
  color: #0f172a;
  font-weight: 400;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.login-switch-action:hover {
  text-decoration: underline;
}
.apmint-theme-dark .login-switch-action {
  color: #fff;
}

.login-view.hidden {
  display: none !important;
}
