@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #134641;
  --primary-soft: rgba(19, 70, 65, 0.12);
  --primary-deep: #0f3835;
  --accent: #1b5d58;
  --text: #1f2937;
  --muted: #6b7280;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --border: rgba(19, 70, 65, 0.12);
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --heading-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --body-font: "Manrope", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body-font);
  background: #edf0ee;
  color: var(--text);
}

#auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-shell {
  width: min(1280px, 100%);
  min-height: 550px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.auth-panel-left {
  min-height: 550px;
  padding: 2rem 2.5rem 2rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-panel-inner {
  width: 100%;
  max-width: 520px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 0 0;
}

.auth-logo {
  margin-bottom: 1.3rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.auth-logo a {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg,
      rgba(19, 70, 65, 0.08),
      rgba(19, 70, 65, 0.16));
  box-shadow: 0 16px 28px rgba(19, 70, 65, 0.12);
  border: 1px solid rgba(19, 70, 65, 0.08);
}

.auth-logo img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(19, 70, 65, 0.08);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

.auth-title {
  margin: 0 0 0.5rem;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--heading-font);
  font-size: clamp(2.8rem, 2rem + 1.6vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: #0f172a;
  text-transform: uppercase;
}

.sub-title {
  position: static;
  margin: 0 0 0.15rem 0;
  font-size: 0.82rem;
  color: rgba(17, 24, 39, 0.62);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: var(--body-font);
}

.auth-subtitle {
  margin: 0 0 2rem;
  color: rgba(17, 24, 39, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 29rem;
  font-family: var(--body-font);
  font-weight: 500;
}

.auth-subtitle strong {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.08em;
  letter-spacing: 0.03em;
}

form {
  width: 100%;
}

.form-group {
  position: relative;
  margin-bottom: 1.2rem;
  width: 100%;
  display: block;
}

.form-control {
  width: 100%;
  height: 3.45rem;
  padding: 0.9rem 3rem 0.9rem 3.4rem;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.9);
  font-size: 1rem;
  color: var(--text);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.form-control::placeholder {
  color: #94a3b8;
  font-size: 1.02rem;
}

.form-control:focus {
  background: #fff;
  border-color: rgba(19, 70, 65, 0.45);
  box-shadow: 0 0 0 0.26rem rgba(19, 70, 65, 0.12);
  outline: none;
}

.form-control-icon {
  position: absolute;
  left: 1.15rem;
  top: 1.6rem;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

.form-group .parsley-errors-list,
.form-group .invalid-feedback,
.form-group .error-message {
  margin-top: 0.45rem;
}

.form-group:has(.is-invalid) .form-control-icon,
.form-group:has(.is-invalid) .password-toggle {
  color: #dc3545;
}

.password-toggle {
  position: absolute;
  right: 0.8rem;
  top: 1.7rem;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  z-index: 2;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(19, 70, 65, 0.08);
  color: var(--primary-deep);
}

.password-toggle i {
  position: relative;
  top: -.3rem;
}

.btn-login {
  width: 100%;
  margin-top: 1.5rem;
  height: 3.5rem;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(19, 70, 65, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(19, 70, 65, 0.28);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.link a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.link a:hover {
  opacity: 0.82;
  text-decoration: underline;
}

.auth-copyright {
  width: 100%;
  margin: 1.75rem 0 0;
  color: rgba(17, 24, 39, 0.48);
  font-size: 0.72rem;
  text-align: center;
}

.alert {
  border-radius: 14px;
  border: 0;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.1);
}

.right-visual {
  position: relative;
  height: 100%;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.52)),
    url("../compiled/jpg/masjid.jpg");
  background-size: cover;
  background-position: center;
  min-height: 700px;
}

.right-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(17, 24, 39, 0.06),
      rgba(17, 24, 39, 0.58));
}

.visual-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 3rem 2.5rem 2.5rem;
}

.visual-branding {
  display: block;
  width: min(520px, 100%);
  margin-bottom: 2rem;
  color: #f8fafc;
}

.auth-branding {
  display: none;
}

.desktop-welcome {
  display: none;
  width: 100%;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.desktop-welcome-icon {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.35rem;
}

.desktop-welcome-label {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-family: var(--heading-font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-welcome h2 {
  margin: 0;
  color: #0f172a;
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 1.3rem + 0.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
}

.desktop-welcome p {
  max-width: 25rem;
  margin: 0.75rem 0 0;
  color: rgba(17, 24, 39, 0.68);
  font-size: 0.95rem;
  line-height: 1.65;
}

.visual-branding .auth-logo {
  margin-bottom: 1.1rem;
  justify-content: flex-start;
}

.visual-branding .auth-logo a {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.visual-branding .auth-title {
  color: #f8fafc;
}

.visual-branding .sub-title,
.visual-branding .auth-subtitle {
  color: rgba(241, 245, 249, 0.86);
}

.visual-branding .auth-subtitle {
  margin-bottom: 0;
}

.visual-branding .auth-subtitle strong {
  color: #fff;
}

.visual-card {
  width: min(520px, 100%);
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  color: #f8fafc;
}

.visual-badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.visual-card h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.9rem, 1.4rem + 1vw, 3.1rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.05em;
  word-break: break-word;
  color: #f8fafc;
}

.visual-card p {
  margin: 1rem 0 0;
  color: rgba(241, 245, 249, 0.86);
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 30rem;
}

.visual-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  #auth {
    padding: 1rem;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-panel-left {
    padding: 2.25rem 1.25rem 1.5rem;
  }

  .auth-panel-left .auth-branding {
    display: flex;
  }

  .auth-panel-inner {
    width: 100%;
    max-width: 100%;
  }

  .visual-content {
    padding: 2rem 1.25rem;
  }

  .visual-branding {
    display: none;
  }
}

@media (min-width: 992px) {
  .desktop-welcome {
    display: block;
  }
}

@media (max-width: 767px) {
  .auth-panel-left {
    padding-top: 2.8rem;
    padding-bottom: 1.5rem;
  }

  .auth-panel-inner {
    max-width: 100%;
    width: 100%;
  }

  .auth-logo {
    margin-bottom: 1.25rem;
  }

  .auth-logo a {
    width: 62px;
    height: 62px;
  }

  .brand-badge {
    margin-bottom: 0.9rem;
  }

  .auth-title {
    font-size: 2.2rem;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
  }

  .sub-title {
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
  }

  .auth-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .form-control {
    height: 3.2rem;
  }

  .btn-login {
    height: 3.2rem;
  }

  .visual-card {
    padding: 1.25rem 1rem;
  }

  .visual-card h2 {
    font-size: 2rem;
  }
}