:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --navy: #0f172a;
  --background: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --error: #ef4444;
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-text: #1e40af;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-container {
  width: 430px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* Tampilan Logo Gambar */
.auth-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 14px;
}

.auth-brand-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.auth-brand-tagline {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-form {
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background-color: #ffffff;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.is-invalid {
  border-color: var(--error);
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
}

.toggle-password:hover {
  color: #64748b;
}

.field-error {
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
  margin-top: 6px;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

/* Tombol pengalih tampilan berbentuk link */
.auth-link-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-banner {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.auth-banner.info {
  background-color: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}

.auth-banner.success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.auth-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hidden {
  display: none !important;
}
