/* =========================================================
   LOGIN DESA Tamansari
========================================================= */

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

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

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

  --border: #D9E4DE;

  --radius-lg: 30px;
  --radius-md: 16px;

  --shadow: 0 30px 70px rgba(32, 75, 55, 0.12);
}

/* =========================================================
   BODY
========================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(107, 151, 126, 0.13), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(190, 210, 198, 0.22), transparent 30%),
    #EEF5F1;
  color: var(--text);
}

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

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #BFD5C8, #6E9E83);
  box-shadow:
    inset 8px 8px 16px rgba(255, 255, 255, 0.35),
    0 20px 30px rgba(50, 90, 70, 0.12);
}

.shape-1 { width: 85px; height: 85px; top: 8%; left: 8%; }
.shape-2 { width: 60px; height: 60px; right: 12%; top: 18%; }
.shape-3 { width: 110px; height: 110px; bottom: -20px; left: 4%; }

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

.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
}

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

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 28px 30px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

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

.login-visual {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.logo-bg {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E7F0EA, #D3E2D9);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.7);
}

.logo-desa {
  position: relative;
  z-index: 2;
  width: 105px;
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px rgba(30, 70, 50, 0.16));
}

.visual-dot {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(145deg, #AFC8B7, #5F9074);
  box-shadow: 0 12px 25px rgba(40, 80, 60, 0.15);
}

.dot-1 { width: 22px; height: 22px; left: 22px; top: 28px; }
.dot-2 { width: 16px; height: 16px; right: 32px; bottom: 24px; }

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

.login-heading {
  margin-bottom: 18px;
}

.login-heading h1 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
}

.input-wrapper > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #739180;
  font-size: 0.9rem;
  z-index: 2;
}

.input-wrapper .form-control {
  height: 50px;
  width: 100%;
  padding: 0 46px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 0.86rem;
  box-shadow: none;
  transition: 0.2s ease;
}

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

.input-wrapper .form-control:focus {
  border-color: #6F9E85;
  box-shadow: 0 0 0 4px rgba(63, 120, 88, 0.08);
}

/* =========================================================
   PASSWORD BUTTON
========================================================= */

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #739180;
  cursor: pointer;
  padding: 8px;
}

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

.btn-login {
  height: 50px;
  margin-top: 2px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #1F674B, #124B37);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(26, 86, 62, 0.2);
  transition: 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 30px rgba(26, 86, 62, 0.26);
}

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

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.login-divider span {
  height: 1px;
  background: var(--border);
}

.login-divider p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

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

.register-button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  transition: 0.2s ease;
}

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

.register-button strong {
  color: var(--primary);
  font-weight: 700;
}

.register-button:hover {
  background: #F3F8F5;
  border-color: #BDD0C5;
  color: var(--text);
}

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

.back-home {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

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

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

.login-security {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

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

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

.custom-alert {
  border: 0;
  border-radius: 12px;
  font-size: 0.8rem;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 576px) {
  .login-page {
    padding: 20px 14px;
  }

  .login-card {
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .login-visual {
    height: 130px;
  }

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

  .logo-desa {
    width: 88px;
    max-height: 110px;
  }

  .login-heading h1 {
    font-size: 1.2rem;
  }

  .shape-1 { width: 55px; height: 55px; }
  .shape-2 { width: 40px; height: 40px; }
}