/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cinzel", serif;
}

body {
  background: #0b0417;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  overflow: hidden;
}

/* WRAPPER */
.reg-wrapper {
  width: 100%;
  max-width: 1200px;
}

/* CARD */
.reg-card {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
}

/* LEFT AREA */
.reg-left {
  width: 42%;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: url("../image/login3.png") center/cover no-repeat !important;
}

/* Overlay hitam 30% */
.reg-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* 30% darkness */
  z-index: 0;
}
/* FIX WARNA TEKS SELECT + OPTION */
select {
  color: #fff !important;
}

select option {
  background: #0b0417;
  color: #fff;
}

/* memastikan konten muncul di atas overlay */
.reg-left * {
  position: relative;
  z-index: 1;
}

.reg-logo {
  width: 85px;
  margin-bottom: 20px;
}

.reg-left-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #fff;
}

.reg-left-text {
  color: #ffeefc;
  font-size: 0.85rem;
  width: 85%;
}

/* RIGHT AREA */
.reg-right {
  width: 58%;
  padding: 35px 45px;
  color: #fff;
  overflow-y: auto;
  max-height: 90vh;
}

/* TITLES */
.reg-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.reg-subtitle {
  margin: 10px 0;
  font-size: 1rem;
}

/* FORM */
.reg-form {
}
.reg-group {
  margin-bottom: 12px;
}

label {
  font-size: 0.85rem;
  color: #dcd2ff;
  margin-bottom: 4px;
  display: block;
}

input,
select {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
}

input:focus,
select:focus {
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.5);
  outline: none;
}

/* 2 column row */
.reg-row {
  display: flex;
  gap: 12px;
}
.reg-row .reg-group {
  flex: 1;
}

.reg-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.reg-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

/* NOTE */
.reg-note {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #ffd29e;
  margin-bottom: 15px;
}

/* Hidden class */
.reg-hidden {
  display: none;
}

/* MOBILE FIX */
@media (max-width: 900px) {
  .reg-card {
    flex-direction: column;
    height: auto;
    max-height: none;
  }
  .reg-left,
  .reg-right {
    width: 100%;
    padding: 25px;
  }
  body {
    overflow: auto;
    height: auto;
  }
  .reg-row {
    flex-direction: column;
  }
}
