@import url('https://fonts.googleapis.com/css2?family=Anton&family=Poppins:wght@400;600;700&display=swap');

/* ========================
   ROOT VARIABLES
======================== */
:root {
  --green-primary: #1b654c;
  --green-dark: #082e21;
  --green-teal: #125a66;
  --green-light: #11ad78;
  --gray-bg: #f1f0f6;
  --gray-text: #828282;
  --gray-border: #adb5bd;
}

/* ========================
   GLOBAL
======================== */
.login-wrapper,
.login-wrapper * {
  font-family: 'Poppins', sans-serif;
}

/* ========================
   LOGIN WRAPPER (full-screen background)
======================== */
.login-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Gradient overlay on top of bg image */
.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180.8deg, rgba(27, 101, 76, 0.8) 1.22%, rgba(8, 46, 33, 0.8) 100%);
  z-index: 1;
}

/* ========================
   LEFT CONTENT (logo + title)
======================== */
.login-left-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 46px 57px;
  display: flex;
  flex-direction: column;
}

/* Logo */
.login-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

/* Title - "Absensi DHE PPPK Paruh Waktu Bapperida" 
   
   RESPONSIVE FONT SIZES (adjust manually per breakpoint):
   - 1920px+: 90px (Large Desktop)
   - 1440px-1919px: 80px (Standard Desktop)
   - 1201px-1439px: 70px (Desktop)
   - max 1200px: 60px (Tablet Landscape)
   - 768px-991px: 52px (Tablet Portrait)
   - max 992px: 48px (Mobile)
   - max 576px: 32px (Small Mobile)
*/
.login-title {
  font-family: 'Anton', sans-serif;
  font-size: 80px; /* Desktop default - adjust per breakpoint below */
  line-height: 1.15;
  color: #fff;
  margin-top: 30px;
  font-weight: 400;
}

/* ========================
   LEADERS PHOTO
   
   RESPONSIVE PROPERTIES AVAILABLE FOR MANUAL ADJUSTMENT:
   
   .leaders-area:
   - bottom: position from bottom (e.g., 0, 10px, 20px)
   - left: position from left (e.g., 30px, 50px)
   - right: position from right (use if needed, set left to 'auto')
   - width: container width (usually 'auto')
   - height: container height (usually 'auto')
   
   .leader-photo:
   - max-height: maximum photo height (e.g., 65vh, 600px)
   - max-width: maximum photo width (e.g., none, 100%, 800px)
   - width: fixed width (usually 'auto')
   - height: fixed height (usually 'auto')
   
   BREAKPOINTS:
   - 1920px+: Large Desktop
   - 1440px-1919px: Standard Desktop
   - 1201px-1439px: Desktop
   - max 1200px: Tablet Landscape
   - 768px-991px: Tablet Portrait
   - max 992px: Mobile (hidden by default)
   - max 576px: Small Mobile (hidden by default)
======================== */
.leaders-area {
  position: absolute;
  bottom: 0;
  left: 30px;
  right: auto;
  z-index: 3;
  pointer-events: none;
  /* Responsive vars: adjust manually */
  width: auto;
  height: auto;
}

.leader-photo {
  display: block;
  object-fit: contain;
  /* Desktop default */
  width: auto;
  height: auto;
  max-width: none;
  max-height: 65vh;
}

/* ========================
   PATTERN DECORATION
======================== */
.pattern-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.pattern-decoration img {
  width: 100%;
  height: 50vh;
  object-fit: cover;
  opacity: 0.4;
}

/* ========================
   RIGHT PANEL - LOGIN FORM
======================== */
.login-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 520px;
  height: 100%;
  background: #fff;
  border-radius: 200px 0 0 200px;
  box-shadow: 0 4px 100px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  padding-left: 80px;
  z-index: 10;
  overflow-y: auto;
}

.login-form-container {
  width: 100%;
  max-width: 360px;
}

/* LOGIN heading */
.login-heading {
  font-family: 'Anton', sans-serif;
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  background: linear-gradient(90deg, #125a66 18.76%, #125a66 50.11%, #1b654c 75.31%, #11ad78 100.51%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

/* Form labels */
.form-label-custom {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-primary);
  margin-bottom: 5px;
}

/* Form inputs */
.form-control-custom {
  background-color: var(--gray-bg) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 12px !important;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #000;
  transition: box-shadow 0.2s ease;
}

.form-control-custom::placeholder {
  color: var(--gray-text);
  font-weight: 400;
}

.form-control-custom:focus {
  box-shadow: 0 0 0 3px rgba(27, 101, 76, 0.15) !important;
  background-color: var(--gray-bg) !important;
}

/* Password toggle */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--green-primary);
}

.password-toggle i {
  font-size: 20px;
}

/* Checkbox */
.form-check-custom .form-check-input {
  width: 19px;
  height: 19px;
  border: 1.2px solid var(--gray-border);
  border-radius: 5px;
  margin-top: 2px;
}

.form-check-custom .form-check-input:checked {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
}

.form-check-custom .form-check-label {
  font-size: 14px;
  color: #000;
  margin-left: 4px;
}

/* Submit button */
.btn-login {
  background-color: var(--green-primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  padding: 12px 12px;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.15s ease;
}

.btn-login:hover {
  background-color: #154f3c;
  color: #fff;
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

/* Partner logos */
.partner-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 30px;
  justify-items: center;
  align-items: center;
}

.partner-logos .logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  grid-column: 1 / -1;
}

.logo-row img{
  max-width: 150px;
}

.partner-logos img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.partner-logos img.logo-tall {
  height: 50px;
}

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

/* Large Desktop - 1920px+ */
@media (min-width: 1920px) {
  /* Title responsive */
  .login-title {
    font-size: 60px;
  }

  .leaders-area {
    bottom: 0;
    left: 50px;
    right: auto;
    width: auto;
    height: auto;
  }

  .leader-photo {
    max-height: 40vh;
    max-width: none;
    width: auto;
    height: auto;
  }
}

/* Standard Desktop - 1440px to 1919px */
@media (min-width: 1440px) and (max-width: 1919px) {
  /* Title responsive */
  .login-title {
    font-size: 50px;
  }

  .leaders-area {
    bottom: 0;
    left: 40px;
    right: auto;
    width: auto;
    height: auto;
  }

  .leader-photo {
    max-height: 45vh;
    max-width: 580px;
    width: auto;
    height: auto;
  }
}

/* Desktop - 1200px to 1439px */
@media (min-width: 1201px) and (max-width: 1439px) {
  /* Title responsive */
  .login-title {
    font-size: 50px;
  }

  .leaders-area {
    bottom: 0;
    left: 30px;
    right: auto;
    width: auto;
    height: auto;
  }

  .leader-photo {
    max-height: 50vh;
    max-width: 520px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 1200px) {
  /* Title responsive - Tablet Landscape */
  .login-title {
    font-size: 50px;
  }

  .login-panel {
    width: 460px;
    border-radius: 140px 0 0 140px;
    padding: 30px 40px;
    padding-left: 60px;
  }

  .login-heading {
    font-size: 36px;
  }

  /* Leaders responsive - Tablet */
  .leaders-area {
    bottom: 0;
    left: 30px;
    right: auto;
    width: auto;
    height: auto;
  }

  .leader-photo {
    max-height: 50vh;
    max-width: 520px;
    width: auto;
    height: auto;
  }
}

@media (max-width: 992px) {
  /* Title responsive - Mobile */
  .login-title {
    font-size: 48px;
    margin-bottom: 24px;
  }

  .login-wrapper {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .login-left-content {
    position: relative;
    padding: 30px 30px;
  }

  .login-panel {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 40px;
    margin-top: -40px;
    padding: 40px 30px;
  }

  /* Leaders responsive - Mobile (hidden by default, adjust if needed) */
  .leaders-area {
    display: none;
    /* Uncomment below to show and adjust manually */
    /* display: block; */
    /* bottom: 0; */
    /* left: 20px; */
    /* right: auto; */
    /* width: auto; */
    /* height: auto; */
  }

  .leader-photo {
    max-height: 50vh;
    max-width: 100%;
    width: auto;
    height: auto;
  }
}

/* Tablet Portrait - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  /* Title responsive - Tablet Portrait */
  .login-title {
    font-size: 52px;
  }

  .leaders-area {
    display: none;
    /* Uncomment below to show and adjust manually */
    /* display: block; */
    /* bottom: 0; */
    /* left: 25px; */
    /* right: auto; */
    /* width: auto; */
    /* height: auto; */
  }

  .leader-photo {
    max-height: 45vh;
    max-width: 90%;
    width: auto;
    height: auto;
  }
}

@media (max-width: 576px) {
  /* Title responsive - Small Mobile */
  .login-title {
    font-size: 32px; /* Adjust manually for small screens */
    line-height: 1.2;
  }

  .login-left-content {
    padding: 20px 24px;
  }

  .login-logo {
    width: 80px;
    height: 80px;
  }

  .login-panel {
    padding: 30px 20px;
  }

  .login-heading {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .form-label-custom {
    font-size: 15px;
  }

  .btn-login {
    font-size: 17px;
  }

  /* Leaders responsive - Small Mobile */
  .leaders-area {
    display: none;
    /* Uncomment below to show and adjust manually */
    /* display: block; */
    /* bottom: 0; */
    /* left: 10px; */
    /* right: auto; */
    /* width: 100%; */
    /* height: auto; */
  }

  .leader-photo {
    max-height: 40vh;
    max-width: 100%;
    width: 100%;
    height: auto;
  }
}


