/* styles.css - Warehouse Modern Night Blue Theme */
/* Background uses uploaded file path — replace if needed by your static server */
:root {
  --card-w: 420px;
  --glass-bg: rgba(18, 25, 40, 0.55);
  --accent1: #2bb7ff;
  --accent2: #3b8dff;
  --text: #eef5ff;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* full-screen background */
.bg-wrap {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      180deg,
      rgba(6, 10, 20, 0.55),
      rgba(6, 10, 20, 0.75)
    ),
    url("../img/bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* dark overlay glow */
.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(30, 60, 120, 0.18) 0%,
    rgba(10, 12, 20, 0.55) 40%,
    rgba(6, 8, 12, 0.9) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* top-left logo */
.top-left {
  position: fixed;
  left: 28px;
  top: 22px;
  z-index: 3;
}
.logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* Login card: glassmorphism */
.login-card {
  position: relative;
  z-index: 2;
  width: var(--card-w);
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: 0 10px 40px rgba(2, 6, 20, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* headings */
.login-card h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.2px;
}
.sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(238, 245, 255, 0.78);
}

/* form fields */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1220;
  box-shadow: 0 4px 10px rgba(11, 18, 32, 0.08);
}

/* button gradient */
.btn {
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: white;
  box-shadow: 0 8px 24px rgba(43, 183, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(43, 183, 255, 0.18);
}
.btn:active {
  transform: translateY(0) scale(0.996);
}

/* hint and errors */
.hint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(238, 245, 255, 0.65);
}
.error {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(255, 40, 40, 0.08);
  color: #ffb3b3;
  border-radius: 8px;
  font-size: 13px;
}

/* bottom-right clock */
.clock {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 3;
  text-align: right;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}
.clock .time {
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}
.clock .date {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}

/* small screen adjustments */
@media (max-width: 520px) {
  .login-card {
    width: 92%;
    padding: 22px;
    border-radius: 12px;
  }
  .top-left {
    left: 16px;
    top: 12px;
  }
  .clock {
    right: 14px;
    bottom: 12px;
    font-size: 14px;
  }
}

/* entrance animation */
.animate-entrance {
  transform: translateY(-10px) scale(0.995);
  opacity: 0;
  animation: popIn 650ms cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}
@keyframes popIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* small decorative floating lights using pseudo elements */
.bg-wrap::before,
.bg-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.06;
}
.bg-wrap::before {
  right: 10%;
  top: 8%;
  background: radial-gradient(circle at 30% 30%, #6cc6ff, transparent 40%);
  transform: translateZ(0);
}
.bg-wrap::after {
  left: 8%;
  bottom: 12%;
  background: radial-gradient(circle at 70% 70%, #4a7bff, transparent 40%);
  transform: translateZ(0);
}
