/* Hide navbar on login page */
.navbar {
  display: none !important;
}

body {
  margin: 0;
  background: #f4f5f7;
  font-family: Arial, sans-serif;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.login-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: #404040;
  z-index: 0;
}

.login-container {
  width: 100%;
  max-width: 430px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  padding-top: 20px;
  padding-bottom: 30px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border-top: 4px solid #f6de64;
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  background:
    linear-gradient(145deg, rgba(243, 213, 91, 0.22), rgba(243, 213, 91, 0.07)),
    var(--light_sidebar_header_background) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404040;
  font-size: 28px;
  font-weight: bold;
}

.login-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #2f2f2f;
}

.login-header p {
  color: #888;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 0;
}

.login-card .form-group {
  margin-bottom: 22px;
}

.login-card .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .form-control {
  height: 48px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  padding: 10px 15px;
  padding-left: 44px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  box-shadow: none;
  transition: all 0.2s ease;
}

.input-wrapper .form-control:focus {
  background: #ffffff;
  border-color: #f6de64;
  box-shadow: 0 0 0 3px rgba(246, 222, 100, 0.25);
  outline: none;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 15px;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
  padding: 4px;
}

.password-toggle:hover {
  color: #404040;
}

.login-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 7px;
  background: #404040;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.login-btn:hover,
.login-btn:focus {
  background: #2f2f2f;
  color: #f6de64;
  outline: none;
}

.login-btn:active {
  transform: translateY(1px);
}

.login-footer {
  text-align: center;
  margin-top: 25px;
  color: #aaa;
  font-size: 12px;
}

/* Flash messages */
.login-alert {
  border: 0;
  border-radius: 7px;
  padding: 13px 15px;
  margin-bottom: 20px;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
}

.login-alert-danger {
  color: #a94442;
  background: #fdf0ef;
  border: 1px solid #f5d1ce;
}

.login-alert-violet {
  color: #404040;
  background: #fff8d5;
  border: 1px solid #f6de64;
}

#error_username,
#error_password {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  text-align: left !important;
}

/* Mobile */
@media (max-width: 576px) {
  .login-page {
    padding: 15px;
  }

  .login-card {
    padding: 30px 22px;
  }

  .login-header h1 {
    font-size: 23px;
  }
}
