/* ----------------------------------- */
/* Global Styles & Variables */
/* ----------------------------------- */
:root {
  --primary-dark: #1a237e;
  /* Biru Gelap/Indigo, kuat untuk tema profesional */
  --primary-accent: #fbc02d;
  /* Kuning/Emas, untuk aksen */
  --text-main: #212121;
  --text-light: #f5f5f5;
  --text-success: #00b000;
  --text-muted: #adb5bd;
  --text-secondary: #6c757d;
  --glass-bg: rgba(255, 255, 255, 0.849);
  /* Background transparan lebih gelap */
  --form-input-bg: rgba(255, 255, 255, 0.95);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background-image: url("/assets/img/bg-login.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  font-family: "Poppins", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.1);
  /* Overlay gelap */
  backdrop-filter: blur(4px);
  /* Efek blur pada background */
  z-index: -2;
}
/* ----------------------------------- */
/* Glassmorphism Container */
/* ----------------------------------- */
.login-container {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 10;
}
/* ----------------------------------- */
/* Header Styles (Logo & Slogan) */
/* ----------------------------------- */
.login-header {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-main);
}
.logo {
  /* Ganti dengan URL logo HKHSK yang sebenarnya */
  width: 80px;
  height: 80px;
  background: var(--primary-accent);
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.login-header img {
  width: auto;
  height: 90px;
}
.login-header h1 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.login-header p {
  font-size: 14px;
  color: var(--text-main);
  font-style: italic;
}
/* ----------------------------------- */
/* Form Styles */
/* ----------------------------------- */
.form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-group label {
  display: block;
  color: var(--text-main);
  /* Label putih */
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  /* Form input dengan background mendekati putih */
  background: var(--form-input-bg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(251, 192, 45, 0.3);
}

/* Password Visibility Toggle */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 42px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: var(--text-main);
}

/* Remember Me & Forgot Password */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
  accent-color: var(--primary-accent);
}

.remember-me label {
  color: var(--text-main);
  font-size: 14px;
}

.forgot-password {
  color: #0d3b66;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #0d3b66;
  text-decoration: underline;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #0d3b66 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.submit-btn:hover {
  background-color: #0d3b66;
  box-shadow: 0 6px 15px rgba(13, 59, 102, 0.5);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.divider-text {
  padding: 0 12px;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Social Icons */
.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary-dark);
  font-size: 20px;
}

.social-icon:hover {
  transform: scale(1.1);
  background: var(--primary-accent);
  color: #fff;
}

/* Registration Link */
.register-link {
  text-align: center;
  margin-top: 24px;
}

.register-link p {
  color: var(--text-light);
  font-size: 14px;
}

.register-link a {
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ----------------------------------- */
/* Footer */
/* ----------------------------------- */
.app-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.app-footer p,
.app-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin: 0;
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--primary-accent);
  text-decoration: underline;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------- */
/* Responsive Adjustments */
/* ----------------------------------- */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .login-container {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .form-control {
    padding: 12px 14px;
  }

  .app-footer {
    padding: 8px 10px;
  }
}
