/* Import a custom Google Font (optional) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root{
  --fg: #ffffff;
  --fg-dim: rgba(255,255,255,.85);
}

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

html, body {
  height: 100%;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--fg);
}

/* Background image styling */
body {
  background: url("background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* ======= Header (from style_2) ======= */
.nav{
  position: fixed; inset: 0 0 auto 0; height:64px; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
  backdrop-filter:saturate(120%) blur(8px);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.10));
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand{ font-weight:700; letter-spacing:.5px; color:var(--fg); text-decoration:none; }
.nav-signin{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 12px; border-radius:99px; cursor:pointer;
  font: 500 .8rem 'Montserrat', Arial, sans-serif; color: rgba(255,255,255,.62);
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  transition: color .15s, background .15s, border-color .15s;
}
.nav-signin:hover{ color:#fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.btn{
  display:inline-block; padding:11px 18px; border-radius:12px;
  background: var(--fg); color:#111; text-decoration:none; font-weight:700;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn:hover{ transform: translateY(-1px); }
.btn-small{ padding:8px 12px; font-weight:600; }

/* ======= Centered overlay text (kept from original style.css) ======= */
.overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;                 /* fill screen */
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 80px 1rem 72px;           /* space for fixed header/footer */
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.content { max-width: 600px; }

/* Slight translucency to text per previous preference */
.content h1 {
  font-size: 3.0rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.85);
}
.content p {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: rgba(255,255,255,0.80);
}

/* ======= Footer (from style_2) ======= */
.footer{
  position: fixed; left:0; right:0; bottom:0; z-index:10;
  text-align:center; padding:12px 16px; font-size:.95rem; color: var(--fg-dim);
  background: rgba(0,0,0,.6);
  border-top:1px solid rgba(255,255,255,.12);
}

/* ======= Sign-in window (opened by clicking "Adam") ======= */
.login-overlay{
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: rgba(6,8,12,.30);
  backdrop-filter: blur(12px) saturate(110%);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  opacity: 0; transition: opacity .25s ease;
}
.login-overlay.open{ opacity: 1; }
.login-overlay[hidden]{ display: none; }

.login-card{
  position: relative;
  width: min(360px, 100%);
  padding: 30px 26px 24px;
  border-radius: 18px;
  background: rgba(18,22,28,.55);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: translateY(10px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.login-overlay.open .login-card{ transform: none; }
.login-card h2{ font-size: 1.25rem; font-weight: 600; color: rgba(255,255,255,.92); }
.login-sub{ font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #e8a7b6; margin: 4px 0 22px; }

.login-close{
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 9px; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: rgba(255,255,255,.6);
}
.login-close:hover{ background: rgba(255,255,255,.08); color: #fff; }

.login-field{ display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.login-field span{ font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.72); }
.login-field input{
  width: 100%; padding: 11px 13px; border-radius: 10px;
  font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-field input:focus{
  outline: none; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(232,167,182,.25);
}
.login-error{ min-height: 1.2em; font-size: .84rem; color: #ffb3a8; margin: 2px 0 12px; }
.login-submit{ width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.login-submit:disabled{ opacity: .7; cursor: default; transform: none; }

.shake{ animation: shake .35s ease; }
@keyframes shake{
  20%{ transform: translateX(-6px); } 40%{ transform: translateX(6px); }
  60%{ transform: translateX(-4px); } 80%{ transform: translateX(3px); }
}

/* Responsive text adjustments */
@media (max-width: 600px) {
  .nav{ height:56px; padding:0 14px; }
  .content h1 { font-size: 2rem; }
  .content p { font-size: 1rem; }
}
