/* --- Basic Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Header --- */
.header {
  background: #f75c00;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
}
.header-left img, .header-right img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.header-logo {
  flex: 1;
  text-align: center;
}
.header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

/* --- Main Content --- */
.main-content {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}
.main-background {
  position: absolute;
  inset: 0;
  background: url('img/background-image.png') no-repeat center center / cover;
  opacity: 0.92;
  z-index: 1;
}
.main-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 2;
}

/* --- Login Form --- */
.login-form-container { 
  z-index: 3;
  width: 90%;
  max-width: 420px;
  margin: 0 2rem;
}
.login-form {
  background: rgba(255,255,255,0.92);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);

  /* Modern gradient + image blend */
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85)),
              url('./img/loginfrom.png');
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  /* Shadows + glow */
  box-shadow: 0 12px 32px rgba(0,0,0,0.25), 0 0 20px rgba(247,92,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-form:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28), 0 0 28px rgba(247,92,0,0.45);
}

/* --- Form Header --- */
.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f75c00;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* --- Inputs --- */
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; margin-bottom: 6px; color: #444; font-size: .95rem; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i.fa-user,
.input-wrapper i.fa-lock {
  position: absolute;
  left: 12px;
  font-size: 1.1rem;
  color: #f75c00;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 2.6rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}
.input-wrapper input:focus {
  border-color: #f75c00;
  box-shadow: 0 0 10px rgba(247,92,0,0.3);
  outline: none;
}

/* --- Password Eye Toggle --- */
.input-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  font-size: 1.1rem;
  color: #f75c00;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: color 0.3s;
}
.input-wrapper .toggle-password:hover { color: #ff7f2a; }

/* --- Login Button --- */
.button-wrapper { text-align: center; }
.login-button {
  padding: 0.75rem 2rem;
  background: linear-gradient(90deg,#f75c00,#ff7f2a);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
.login-button:hover {
  transform: scale(1.02);
  background: linear-gradient(90deg,#ff7f2a,#f75c00);
}

/* --- Footer --- */
.footer {
  background: #991f1f;
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .85rem;
  gap: .35rem;
}
.footer-left, .footer-right { width: 100%; text-align: center; }



/* --- Responsive --- */
@media(min-width:768px) {
  .footer { flex-direction: row; justify-content: space-between; }
  .footer-left, .footer-right { width: auto; text-align: inherit; }
}
@media(max-width:480px){
  .header-left img, .header-right img { width:40px;height:40px; }
  .header-logo span { font-size:1.05rem; }
  .input-wrapper input { padding-left:2.2rem; padding-right:2.6rem; }
}
