:root {
  --red-text: #e74646;
  --red-secondary: #ff6363;
  --red-background: #ffe3e6;
  --gray-900: #111827;
  --gray-600: #4b5563;
  --gray-300: #e5e7eb;
}

* {
  box-sizing: border-box;
  font-family: 'Figtree', system-ui, sans-serif;
}

body {
  background: url("../img/pp.png");
  background-repeat: repeat;
  background-size: auto, 240px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px;
}

.card {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

h1 {
  text-align: center;
  color: var(--red-text);
  padding-bottom: 14px;
}

.desc {
  text-align: center;
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(211,47,47,.55);
  box-shadow: 0 0 0 2px rgba(211,47,47,.2);
}

/* ===== ERROR STATE ===== */
input.error,
select.error {
  border-color: var(--red-secondary);
  background: #fff5f5;
  box-shadow: 0 0 0 2px rgba(211,47,47,.3);
}

.error-text {
  font-size: 12px;
  color: var(--red-text);
  margin-top: 6px;
}

/* ===== LAYOUT ===== */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hidden {
  display: none;
}

/* ===== BUTTON ===== */
.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--red-secondary), var(--red-secondary));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-submit:hover {
  box-shadow: var(--red-secondary) 1px 1px 1px 1px;
  transform: translateY(-2px);
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

/* BTN BCK */
/* From Uiverse.io by vinodjangid07 */ 
.Btn-back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: .3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: var(--red-secondary);
}

/* plus sign */
.bck {
  width: 100%;
  transition-duration: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bck svg {
  width: 17px;
}

.bck svg path {
  fill: white;
}
/* text */
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  transition-duration: .3s;
}
/* hover effect on button width */
.Btn-back:hover {
  width: 125px;
  border-radius: 40px;
  transition-duration: .3s;
}

.Btn-back:hover .bck {
  width: 30%;
  transition-duration: .3s;
  padding-left: 20px;
}
/* hover effect button's text */
.Btn-back:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: .3s;
  padding-right: 10px;
}
/* button click effect*/
.Btn-back:active {
  transform: translate(2px ,2px);
}

/* wrapper bck button & logo */
.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

/* Area kiri khusus back button */
.header-left {
  position: relative;
  width: 125px; /* ruang maksimal hover */
  flex-shrink: 0;
}

/* Area tengah logo */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  pointer-events: none; /* biar hover back ga ganggu */
}

/* kanan = penyeimbang */
.header-right {
  width: 125px;
}
