/* =========================================================
   REGISTER DESA Tamansari
========================================================= */

:root {
  --primary: #1B5E45;
  --primary-dark: #124B37;
  --primary-soft: #DDEBE4;

  --bg: #EEF5F1;
  --white: #FFFFFF;

  --text: #213A2D;
  --muted: #7B8D84;

  --border: #D9E4DE;

  --radius-lg: 24px;
  --radius-md: 14px;

  --shadow: 0 20px 50px rgba(32, 75, 55, 0.10);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: 'Poppins', sans-serif;

  color: var(--text);

  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(108, 153, 128, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 75%,
      rgba(190, 210, 198, 0.20),
      transparent 30%
    ),
    #EEF5F1;

  overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.register-page {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px 16px;

  overflow: hidden;
}


/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.register-page::before,
.register-page::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #C5D8CC,
      #7FA58E
    );

  box-shadow:
    inset 8px 8px 16px rgba(255, 255, 255, 0.28),
    0 20px 30px rgba(50, 90, 70, 0.10);

  pointer-events: none;
}


.register-page::before {
  width: 65px;
  height: 65px;

  top: 5%;
  left: 5%;
}


.register-page::after {
  width: 80px;
  height: 80px;

  right: 4%;
  bottom: -15px;
}


/* =========================================================
   CONTAINER
========================================================= */

.register-container {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 400px;
}


/* =========================================================
   CARD
========================================================= */

.register-card {
  position: relative;

  padding: 24px 28px 22px;

  background: rgba(255, 255, 255, 0.94);

  border: 1px solid rgba(255, 255, 255, 0.85);

  border-radius: 28px;

  box-shadow: var(--shadow);

  backdrop-filter: blur(8px);
}


/* =========================================================
   VISUAL
========================================================= */

.register-visual {
  position: relative;

  height: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 14px;
}


.logo-bg {
  position: absolute;

  width: 105px;
  height: 105px;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #E6F0EA,
      #D5E3DA
    );

  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.7);
}


.logo-desa {
  position: relative;
  z-index: 2;

  width: 90px;
  max-height: 110px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 10px 12px rgba(30, 70, 50, 0.14)
    );
}


.visual-dot {
  position: absolute;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #B2CBB9,
      #67947B
    );

  box-shadow:
    0 10px 20px rgba(40, 80, 60, 0.12);
}


.dot-1 {
  width: 18px;
  height: 18px;

  left: 30px;
  top: 18px;
}


.dot-2 {
  width: 12px;
  height: 12px;

  right: 32px;
  bottom: 18px;
}


/* =========================================================
   HEADING
========================================================= */

.register-heading {
  margin-bottom: 16px;
}


.register-heading h1 {
  margin: 0 0 4px;

  color: var(--primary-dark);

  font-size: 1.25rem;

  font-weight: 700;
}


.register-heading p {
  margin: 0;

  color: var(--muted);

  font-size: 0.78rem;

  line-height: 1.5;
}


/* =========================================================
   FORM
========================================================= */

.register-form {
  display: flex;
  flex-direction: column;

  gap: 12px;
}


.form-group label {
  display: block;

  margin-bottom: 5px;

  color: var(--text);

  font-size: 0.74rem;

  font-weight: 600;
}


.input-wrapper {
  position: relative;
}


.input-wrapper .form-control {
  width: 100%;
  height: 42px;

  padding: 0 13px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: rgba(255, 255, 255, 0.82);

  color: var(--text);

  font-family: inherit;

  font-size: 0.78rem;

  box-shadow: none;

  transition: 0.2s ease;
}


.input-wrapper .form-control::placeholder {
  color: #A3B0A9;
}


.input-wrapper .form-control:focus {
  background: #fff;

  border-color: #7BA08B;

  box-shadow:
    0 0 0 3px rgba(47, 105, 75, 0.08);

  outline: none;
}


.input-wrapper select.form-control {
  color: var(--text);
}


.form-hint {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 0.65rem;
}


.invalid-feedback {
  margin-top: 4px;

  color: #B84C4C;

  font-size: 0.68rem;
}


/* =========================================================
   REGISTER BUTTON
========================================================= */

.btn-register {
  height: 44px;

  margin-top: 4px;

  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #1F674B,
      #124B37
    );

  color: #fff;

  font-family: inherit;

  font-size: 0.82rem;

  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 10px 20px rgba(26, 86, 62, 0.18);

  transition: 0.2s ease;
}


.btn-register:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 25px rgba(26, 86, 62, 0.22);
}


/* =========================================================
   DIVIDER
========================================================= */

.register-divider {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 10px;

  margin: 14px 0 12px;
}


.register-divider span {
  height: 1px;

  background: var(--border);
}


.register-divider p {
  margin: 0;

  color: var(--muted);

  font-size: 0.7rem;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--border);

  border-radius: 11px;

  color: var(--text);

  text-decoration: none;

  font-size: 0.74rem;

  transition: 0.2s ease;
}


.login-button i {
  color: var(--primary);
}


.login-button strong {
  color: var(--primary);

  font-weight: 700;
}


.login-button:hover {
  background: #F3F8F5;

  border-color: #BDD0C5;

  color: var(--text);
}


/* =========================================================
   HOME
========================================================= */

.back-home {
  margin-top: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  color: var(--primary);

  font-size: 0.72rem;

  font-weight: 600;

  text-decoration: none;
}


.back-home:hover {
  color: var(--primary-dark);
}


/* =========================================================
   SECURITY
========================================================= */

.register-security {
  margin-top: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  color: var(--muted);

  font-size: 0.65rem;
}


.register-security i {
  color: #6E967F;
}


/* =========================================================
   ALERT
========================================================= */

.custom-alert {
  border: 0;

  border-radius: 10px;

  font-size: 0.74rem;

  padding: 10px 14px;
}


/* =========================================================
   RESPONSIVE - HP
========================================================= */

@media (max-width: 576px) {

  .register-page {
    padding: 16px 12px;
  }

  .register-container {
    max-width: 100%;
  }

  .register-card {
    padding: 20px 18px 18px;

    border-radius: 22px;
  }

  .register-visual {
    height: 110px;

    margin-bottom: 10px;
  }

  .logo-bg {
    width: 85px;
    height: 85px;
  }

  .logo-desa {
    width: 72px;
    max-height: 90px;
  }

  .dot-1 {
    width: 14px;
    height: 14px;

    left: 22px;
    top: 14px;
  }

  .dot-2 {
    width: 10px;
    height: 10px;

    right: 24px;
    bottom: 14px;
  }

  .register-heading h1 {
    font-size: 1.1rem;
  }

  .register-heading p {
    font-size: 0.72rem;
  }

  .register-heading {
    margin-bottom: 12px;
  }

  .register-form {
    gap: 10px;
  }

  .form-group label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .input-wrapper .form-control {
    height: 38px;
    font-size: 0.74rem;
    padding: 0 11px;
    border-radius: 10px;
  }

  .btn-register {
    height: 40px;
    font-size: 0.78rem;
    border-radius: 10px;
    margin-top: 2px;
    padding: 0 14px;
  }

  .register-divider {
    margin: 10px 0 10px;
    gap: 8px;
  }

  .register-divider p {
    font-size: 0.65rem;
  }

  .login-button {
    height: 38px;
    font-size: 0.7rem;
    border-radius: 10px;
  }

  .back-home {
    font-size: 0.68rem;
    margin-top: 10px;
  }

  .register-security {
    font-size: 0.6rem;
    margin-top: 12px;
  }

  .custom-alert {
    font-size: 0.7rem;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .register-page::before {
    width: 40px;
    height: 40px;

    top: 3%;
    left: 3%;
  }

  .register-page::after {
    width: 50px;
    height: 50px;

    right: 3%;
    bottom: -10px;
  }
}