/* Modern login page inspired by reference design */

body.login-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Raleway", "Segoe UI", sans-serif;
  color: #1b1b1b;
  overflow: hidden;
}

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/images/bg-login.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.05);
  z-index: -2;
}

.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 27, 27, 0.35),
    rgba(27, 27, 27, 0.5)
  );
  z-index: -1;
}

.login-content {
  width: 100%;
  max-width: 980px;
}

.login-card {
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 520px;
}

.login-image-panel {
  flex: 0 0 46%;
  background-image: url("/static/images/bg-login.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(8, 47, 73, 0.2) 0%,
    rgba(8, 47, 73, 0.65) 65%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.login-image-text {
  color: #f8fafc;
  max-width: 260px;
}

.login-image-text span {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 12px;
}

.login-image-text h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
}

.login-form-panel {
  flex: 1;
  padding: 46px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.3);
  overflow: hidden;
}

.login-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1b1b1b;
}

.brand-text p {
  margin: 4px 0 0;
  color: #1b1b1b;
  font-size: 14px;
}

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

.input-group-modern {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group-modern label {
  font-size: 13px;
  font-weight: 600;
  color: #1b1b1b;
  letter-spacing: 0.3px;
}

.input-modern {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(27, 27, 27, 0.2);
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  transition: all 0.2s ease;
  color: #1b1b1b;
}

.input-modern::placeholder {
  color: rgba(27, 27, 27, 0.5);
}

.input-modern:focus {
  outline: none;
  border-color: rgba(255, 215, 0, 0.85);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.18);
  background: rgba(255, 255, 255, 1);
}

.input-modern:focus::placeholder {
  color: rgba(27, 27, 27, 0.4);
}

.btn-login {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ffd700, #ffd700);
  color: #1b1b1b;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(255, 215, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, #ffd700, #ffe44d);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 14px 26px rgba(255, 215, 0, 0.25);
}

.login-help-text,
.login-recover-text {
  font-size: 12.5px;
  color: #1b1b1b;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .login-card {
    flex-direction: column;
    min-height: auto;
  }

  .login-image-panel {
    height: 260px;
    flex: none;
  }

  .login-form-panel {
    padding: 36px 32px 40px;
  }
}

@media (max-width: 600px) {
  .login-page {
    padding: 24px 12px;
  }

  .login-content {
    max-width: 100%;
  }

  .login-card {
    border-radius: 18px;
  }

  .login-form-panel {
    padding: 32px 24px 36px;
  }

  .login-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .login-image-panel {
    height: 220px;
  }
}
