@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: #F4FAF6;
  color: #1A3D4F;
  -webkit-font-smoothing: antialiased;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrap--register {
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 24px;
}

.auth-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-card--wide {
  max-width: 480px;
  padding: 28px 24px;
}

.sipmt-logo-login {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo {
  width: 36px;
  height: 36px;
  background: #0a0a0a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.auth-brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  line-height: 1.2;
}

.auth-brand-text span {
  font-size: 12px;
  color: #737373;
  font-weight: 400;
}

.auth-heading {
  margin-bottom: 18px;
}

.auth-heading h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1A3D4F;
  margin-bottom: 4px;
}

.auth-heading p {
  font-size: 12px;
  color: #737373;
  line-height: 1.45;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #1A3D4F;
  margin-bottom: 4px;
}

.auth-field input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field select,
.auth-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: #0a0a0a;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-field select {
  height: 36px;
  padding: 0 10px;
}

.auth-textarea {
  padding: 8px 10px;
  resize: vertical;
  min-height: 56px;
}

.auth-field select:focus,
.auth-textarea:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.auth-field input::placeholder {
  color: #a3a3a3;
}

.auth-field input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a;
}

.auth-field input.auth-error {
  border-color: #dc2626;
}

.auth-error-msg {
  font-size: 12px;
  color: #dc2626;
  margin-top: 6px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0a0a0a;
  cursor: pointer;
}

.auth-remember label {
  font-size: 12px;
  color: #525252;
  cursor: pointer;
  user-select: none;
}

.auth-submit {
  width: 100%;
  height: 36px;
  background: #0a0a0a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.auth-submit:hover {
  background: #262626;
}

.auth-submit:active {
  opacity: 0.9;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 11px;
  color: #a3a3a3;
  line-height: 1.7;
  text-align: center;
}

.auth-footer--demo {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.auth-link {
  color: #0a0a0a;
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
  margin: 14px 0 10px;
}

.auth-section-title:first-of-type {
  margin-top: 0;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.auth-form-grid--single {
  grid-template-columns: 1fr;
}

.auth-terms label {
  line-height: 1.45;
}

.auth-error-list {
  margin: 0;
  padding-left: 18px;
}

.auth-error-list li {
  margin-bottom: 4px;
}

.auth-error-list li:last-child {
  margin-bottom: 0;
}

.auth-footer strong {
  color: #525252;
  font-weight: 500;
}

.auth-alert {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Tentang aplikasi & tim pengembang ── */
.auth-about {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #E8F8EB;
}

.auth-about-app {
  padding: 12px 14px;
  background: linear-gradient(135deg, #F4FAF6 0%, #E8F4FC 100%);
  border: 1px solid #C5E6CE;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: center;
}

.auth-about-app-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A3D4F;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.auth-about-app-desc {
  font-size: 11px;
  color: #4A6670;
  line-height: 1.45;
}

.auth-team-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #39B54A;
  margin-bottom: 10px;
}

.auth-team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-team-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  line-height: 1.45;
  color: #4A6670;
  padding: 8px 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.auth-team-member-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E8F8EB;
  color: #2D9440;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-team-list li span:last-child {
  padding-top: 4px;
}
