/* main.css - SIMALA DPRD Langkat Login Page */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lato:wght@300;400;700&family=Montserrat:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Lato', sans-serif;
}

/* ==============================
   BACKGROUND
================================ */
.page-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/bglangkatbaru2.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* ==============================
   CARD WRAPPER
================================ */
.login-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 1100px;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  
  background: #B4AA7B;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* ==============================
   LEFT PANEL
================================ */
.left-panel {
  width: 500px;
  flex-shrink: 0;
  background: #B4AA7B;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-circle {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.logo-circle img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.system-name {
  font-size: 22px;
  font-weight: 900;
  color: black;
  letter-spacing: 1px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.system-desc {
  font-size: 20px;
  color: black;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tagline {
  font-style: bold;
  font-size: 16px;
  color: black;
  margin-bottom: 30px;
}

.powered-label {
  font-size: 11px;
  color: black;
  margin-bottom: 10px;
}

.logo-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.logo-row img {
  height: 42px;
  width: auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  object-fit: contain;
}

/* ==============================
   RIGHT PANEL
================================ */
.right-panel {
  flex: 1;
  background: #3C4D59;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  
  border-radius: 18px;
  justify-content: center;
  margin: 20px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 36px;
}

/* ==============================
   FORM FIELDS
================================ */
.field-group {
  margin-bottom: 18px;
}

.field-label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.field-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.field-input:focus {
  border-color: #c8a84b;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper .field-input {
  padding-right: 44px;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toggle-pass:hover {
  color: #c8a84b;
}

/* ==============================
   CAPTCHA
================================ */
.captcha-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(200, 168, 75, 0.5);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 8px;
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #ffd966;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.captcha-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 4px,
    rgba(255,255,255,0.02) 4px,
    rgba(255,255,255,0.02) 8px
  );
}

.captcha-line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(255, 217, 102, 0.4);
}

/* ==============================
   BUTTON
================================ */
.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #c8a84b, #a8862a);
  border: none;
  border-radius: 30px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  cursor: pointer;
  margin-top: 26px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(200, 168, 75, 0.35);
}

.btn-login:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 168, 75, 0.45);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(200, 168, 75, 0.3);
}

/* ==============================
   ALERT / ERROR
================================ */
.alert-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff8a8a;
  margin-bottom: 18px;
  text-align: center;
  display: none;
}

.alert-error.show {
  display: block;
}

/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 640px) {
  .login-card {
    flex-direction: column;
    border-radius: 14px;
  }

  .left-panel {
    width: 100%;
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .right-panel {
    padding: 30px 24px;
  }

  .login-title {
    font-size: 22px;
    letter-spacing: 4px;
  }
}