:root {
  --pamgm-blue: #0a6ebd;
  --pamgm-blue-dark: #075694;
  --pamgm-blue-tint: #eaf3fb;
  --pamgm-navy: #0d2b40;
  --pamgm-green: #1a8754;
  --pamgm-red: #c0392b;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  color: #2c363a;
  background-color: var(--pamgm-navy);
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: 2rem 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(/img/login-bg.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 460px;
}

.card {
  padding: 2.5rem 2.25rem 2rem;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 20px 50px rgba(13, 43, 64, 0.35);
}

.logo {
  display: block;
  max-height: 72px;
  width: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 0 0 0.4rem;
  color: var(--pamgm-navy);
  font-weight: 700;
  text-align: center;
}

.subtitle {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #55686f;
  margin: 0 0 1.5rem;
  text-align: center;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pamgm-navy);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  border: 1px solid #d4dbde;
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #2c363a;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--pamgm-blue);
  box-shadow: 0 0 0 3px var(--pamgm-blue-tint);
}

.email-field {
  display: flex;
  align-items: stretch;
  margin-bottom: 1rem;
}

.email-field input {
  margin-bottom: 0;
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.email-suffix {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid #d4dbde;
  border-left: none;
  border-radius: 0 6px 6px 0;
  background: #f4f6f7;
  color: #55686f;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hint {
  font-size: 0.78rem;
  color: #8a9499;
  margin: -0.7rem 0 1rem;
}

button,
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: none;
  background-color: var(--pamgm-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background-color: var(--pamgm-blue-dark);
}

.btn-secondary {
  background-color: #fff;
  color: var(--pamgm-navy);
  border: 1px solid #d4dbde;
}

.btn-secondary:hover {
  background-color: #f4f6f7;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
}

.btn-row > * {
  flex: 1;
}

.alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.alert-error {
  background: #fdecea;
  color: var(--pamgm-red);
  border: 1px solid #f6cdc8;
}

.alert-info {
  background: var(--pamgm-blue-tint);
  color: var(--pamgm-blue-dark);
  border: 1px solid #cfe4f5;
}

.data-list {
  border: 1px solid #eaeff1;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #eaeff1;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row dt {
  color: #8a9499;
  font-weight: 600;
}

.data-row dd {
  margin: 0;
  color: var(--pamgm-navy);
  text-align: right;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #eafaf1;
  color: var(--pamgm-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-note a {
  color: #fff;
}
