.login-body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%);
  background-attachment: fixed;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.login-shell {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

/* Header */
.login-header {
  padding-top: 64px;
  padding-bottom: 32px;
  display: flex;
  justify-content: center;
}
.login-logo-wrap {
  text-align: center;
}
.login-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.login-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Card */
.login-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 24px;
}
.login-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.login-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.2px;
}
.login-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-500);
}

/* Error banner */
.login-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--error-bg);
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.login-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Form */
.login-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-700);
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.input-wrap:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(30, 86, 160, 0.12);
}
.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-400);
}
.input-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 12px;
}
.input-field {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-900);
  padding: 0;
  font-family: inherit;
  min-width: 0;
}
.input-field::placeholder {
  color: var(--placeholder);
}

.password-toggle {
  background: transparent;
  border: 0;
  padding: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-400);
  border-radius: 6px;
}
.password-toggle:hover {
  color: var(--text-700);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.password-toggle [hidden] {
  display: none !important;
}

/* Sign-in button (gradient) */
.login-btn {
  margin-top: 8px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-input);
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3));
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 73, 163, 0.35);
  transition: transform 0.06s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  font-family: inherit;
  letter-spacing: 0.2px;
}
.login-btn:hover {
  box-shadow: 0 6px 20px rgba(2, 73, 163, 0.45);
}
.login-btn:active {
  transform: translateY(1px);
}
.login-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.login-footer {
  text-align: center;
  padding: 16px 0 32px;
}
.login-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

/* Tablet+ */
@media (min-width: 640px) {
  .login-shell {
    max-width: 520px;
  }
  .login-card {
    padding: 36px;
  }
}
