:root {
  --dc-login-blue: #0d3569;
  --dc-login-blue-dark: #08204b;
  --dc-login-blue-light: #e6ecf6;
  --dc-login-border: rgba(13, 53, 105, 0.2);
  --dc-login-text: #0b2c53;
  --dc-login-muted: #4d5a74;
  --dc-login-shadow: 0 25px 60px rgba(4, 12, 38, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--dc-login-blue-light);
  color: var(--dc-login-text);
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--dc-login-blue-light) 0%, #fefefe 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 26px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--dc-login-shadow);
  border: 1px solid var(--dc-login-border);
}

.login-card__logo {
  width: min(180px, 70%);
  max-width: 220px;
  height: auto;
  margin-bottom: 18px;
}

.login-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-login-muted);
  margin-bottom: 12px;
}

.login-card__title {
  font-size: 28px;
  margin: 0;
  font-weight: 600;
  color: var(--dc-login-blue-dark);
}

.login-card__subtitle {
  margin: 10px 0 30px;
  color: var(--dc-login-muted);
  font-size: 15px;
}

.login-card--logo-only .login-card__title,
.login-card--logo-only .login-card__subtitle {
  display: none;
}

.login-card--logo-only .login-card__logo {
  width: min(180px, 80%);
  max-width: 230px;
  height: auto;
  margin-bottom: 18px;
}

.login-card--logo-only .login-card__form {
  margin-top: 0;
}

.login-card__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card__form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--dc-login-border);
  font-size: 15px;
  color: var(--dc-login-text);
  background: #fdfdfd;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-card__form input:focus {
  border-color: rgba(13, 53, 105, 0.6);
  box-shadow: 0 0 0 3px rgba(13, 53, 105, 0.12);
}

.login-card__form button {
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  background: var(--dc-login-blue);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-card__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(13, 53, 105, 0.25);
}

.login-card__footer {
  margin-top: 26px;
  font-size: 14px;
  color: var(--dc-login-muted);
}

.login-card__footer a {
  color: var(--dc-login-blue);
  font-weight: 600;
  text-decoration: none;
}

.login-card__footer a:hover {
  text-decoration: underline;
}

.login-card__recovery {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.login-card__reset-button {
  background: none;
  border: none;
  color: var(--dc-login-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.login-card__reset-button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.login-card__reset-feedback {
  font-size: 13px;
  color: var(--dc-login-muted);
  text-align: center;
}

.login-card__reset-feedback[data-tone="success"] {
  color: #1b7a3c;
}

.login-card__reset-feedback[data-tone="error"] {
  color: #a2111a;
}

.login-card__alert {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  text-align: left;
  margin-bottom: 16px;
}

.login-card__alert--error {
  background: #fff0f0;
  color: #a2111a;
}

.login-card__alert--warning {
  background: #fff9ec;
  color: #7a5300;
}

.login-card__alert--success {
  background: #eafaf1;
  color: #1b7a3c;
}

.login-card__alert--info {
  background: #e7f1ff;
  color: #0d2f6c;
}

.login-card__section {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.login-card__hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dc-login-muted);
  margin-bottom: 12px;
}

.password-guidelines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.password-guidelines li {
  font-size: 14px;
  color: var(--dc-login-muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.password-guidelines li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--dc-login-border);
  background: transparent;
}

.password-guidelines__item--ok {
  color: #1b7a3c;
}

.password-guidelines__item--ok::before {
  background: #1b7a3c;
  border-color: #1b7a3c;
}

.login-input-group {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dc-login-text);
}

.password-field {
  position: relative;
  width: 100%;
}

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

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--dc-login-blue);
  font-weight: 600;
  cursor: pointer;
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(13, 53, 105, 0.4);
  outline-offset: 4px;
}

.login-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 600;
  color: var(--dc-login-blue);
  text-decoration: none;
}

.login-card__link::before {
  content: "←";
  font-size: 16px;
}

@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}
