html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f0f0f0 !important;
  display: flex;
  flex-direction: column; /* let footer stay at bottom */
}

.content {
  flex: 1; /* take remaining space between header and footer */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}


.login-box:hover {
  transform: translateY(-5px);
}

.title {
  font-weight: bold;
  color: #333;
}

.subtitle {
  font-size: 14px;
  color: #777;
}

.form-control {
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

.btn-primary {
  background: #007bff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-admin {
  background: #007bff;
  color: #fff;
  border-radius: 8px;
  padding: 8px 15px;
  transition: background 0.3s ease;
}

.btn-admin:hover {
  background: #0056b3;
  color: #fff;
}

.forgot-link {
  color: #007bff;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.alert {
  font-size: 14px;
  border-radius: 8px;
}

.logo {
    max-width: 200px;  /* increase from default */
    width: 100%;
    height: auto;
}

/* ===== Enhanced Modal Style ===== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideUp 0.3s ease-in-out;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745, #218838);
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.modal-title {
    font-size: 1.25rem;
}

.modal-body {
    padding: 20px;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

.modal-footer {
    border-top: none;
    padding: 15px 20px;
}

.modal-footer .btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
}

.modal-footer .btn-primary {
    background: #007bff;
    border: none;
}

.modal-footer .btn-primary:hover {
    background: #0056b3;
}

.modal-footer .btn-secondary {
    background: #e0e0e0;
    color: #333;
    border: none;
}

.modal-footer .btn-secondary:hover {
    background: #d5d5d5;
}

/* ===== Animation ===== */
@keyframes modalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.password-tooltip {
    position: relative;
}

.input-wrapper {
    position: relative;
}
.input-wrapper input {
    padding-right: 35px; /* Space for the eye icon */
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: gray;
}
.toggle-password:hover {
    color: black;
}

.tooltip-text {
    display: none; /* hidden by default */
    background: white;
    border: 1px solid red;
    padding: 10px;
    border-radius: 8px;
    position: absolute;
    left: 105%; /* move to the right of the input */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Balloon arrow */
.tooltip-text::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent red transparent transparent;
}

/* Requirement states */
.tooltip-text div {
    color: red;
    font-weight: bold;
}

.tooltip-text div.valid {
    color: green;
}

.toggle-password {
  display: none; /* hide initially */
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: gray;
}

.toggle-password:hover {
  color: black;
}

.footer {
  width: 100%;
  height: 40px;
  background-color: #333;
  color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  margin-top: auto; /* pushes footer down in flex layout */
}

.footer p {
  font-size: 14px;
  margin: 0;
}
