/* ==========================================================================
   admin/login.css
   Scoped stylesheet for resources/views/admin/login.blade.php ONLY.
   Does not touch or override admin/style.css used elsewhere in the portal.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #edf0f7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Layout ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #f8faff;
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.card-wrap {
  width: 100%;
  max-width: 420px;
  will-change: transform;
  transform-style: preserve-3d;
}

/* ── Card ── */
.card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 52px 44px 44px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Top accent line */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    #0066ff 30%,
    #0066ff 70%,
    transparent 100%);
  opacity: 0.7;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.logo-wrap img {
  width: 80px;
  height: auto;
}

/* ── Brand ── */
.brand {
  text-align: center;
  margin-bottom: 36px;
}

.brand h1 {
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #0d1b3e;
  margin: 0 0 10px;
  line-height: 1.1;
  font-weight: 700;
}

.brand p {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a94a8;
}

/* ── Alerts (errors / status) ──
   Restyled to match the new palette while keeping the same
   markup and jQuery fade-out behaviour as the original page. */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  text-align: center;
  list-style: none;
}

.alert ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-danger {
  background: #fdeceb;
  color: #c0392b;
  border: 1px solid #f3c6c2;
}

.alert-success {
  background: #e8f6ee;
  color: #1f8a4d;
  border: 1px solid #bfe8cf;
}

/* ── Form ── */
.fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #7a85a0;
}

.field input {
  background: #f5f7fb;
  border: 1px solid #dde2ee;
  border-radius: 10px;
  padding: 13px 16px;
  color: #0d1b3e;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  letter-spacing: 0.01em;
}

.field input::placeholder {
  color: #b0b9ce;
}

.field input:focus {
  outline: none;
  border-color: rgba(0, 102, 255, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ── Button ── */
.btn-login {
  width: 100%;
  background: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.38);
  margin-bottom: 22px;
}

.btn-login:hover {
  background: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.48);
}

.btn-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

/* ── Forgot ── */
.forgot {
  text-align: center;
}

.forgot a {
  color: #0066ff;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
  opacity: 0.75;
}

.forgot a:hover {
  opacity: 1;
}

/* ── Secure badge ── */
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eaecf4;
}

.secure span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  color: #aab2c8;
  text-transform: uppercase;
}

/* ── Footer ── */
.login-footer {
  position: relative;
  z-index: 1;
  padding: 16px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.5);
}

.footer-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9aa4bc;
}

.footer-sep {
  color: #cdd2e0;
  font-size: 11px;
}

.login-footer a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8a94a8;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #0066ff;
}

/* ── Small screens ── */
@media (max-width: 480px) {
  .card {
    padding: 40px 28px 32px;
  }
  .brand h1 {
    font-size: 26px;
  }
}
