/* style.css — unified stylesheet for login & signup pages
   Matches the dark theme / spacing / button behavior of the provided CSS
*/

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: rgb(255,255,255);
  scroll-behavior: smooth;
}

:root{
  --background-primary: #050505;
  --background-secondary: #0a0a0a;
  --panel: #0e0e0e;
  --border: #1f1f1f;
  --accent: #00aeff;
  --accent-pressed: #0081bd;
  --text-primary: #ffffff;
  --text-secondary: #afafaf;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --glass-alpha: 0.55;
  --shadow: 0 10px 30px rgba(0,0,0,0.6);
  --transition-fast: 180ms;
}

/* Page background */
html,body{
  height: 100%;
  background-color: var(--background-primary);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* layer centers the form (used in your HTML) */
.layer{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.03), transparent);
}

/* form container (card) */
.divI{
  width: 420px;
  max-width: calc(100% - 3rem);
  background: rgba(10,10,10,var(--glass-alpha)); /* subtle glass */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(120%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
}

/* heading */
.divI h1{
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

/* paragraph/link line below the heading */
.link{
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* anchor inside that line */
.linkac{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  margin-left: 0.25rem;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}
.linkac:hover{
  filter: brightness(1.15);
  opacity: 0.95;
}

/* inputs */
.tField{
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform 120ms;
  /* -webkit-appearance: none; */
}

.tField::placeholder{
  color: rgba(175,175,175,0.6);
  font-weight: 500;
}

/* focus styles for accessibility */
.tField:focus{
  border-color: rgba(0,174,255,0.9);
  box-shadow: 0 6px 18px rgba(0,174,255,0.08);
  transform: translateY(-1px);
}

/* primary button (used on both pages) */
.button,
.startBtn,
.selectBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: 200ms;
  /* transition: background var(--transition-fast) ease, color var(--transition-fast), transform 200ms ease, box-shadow 160ms; */
  user-select: none;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* default hover / active states */
.button:hover,
.startBtn:hover,
.selectBtn:hover{
  background: var(--accent);
  color: var(--background-primary);
  transform: translateY(-2px);
}

.button:active,
.startBtn:active,
.selectBtn:active{
  background: var(--accent-pressed);
  border-color: #009bdd;
  transform: translateY(0);
}

/* small icon spacing if buttons include an arrow SVG */
.button .arrowSvg,
.startBtn .arrowSvg,
.selectBtn .arrowSvg {
  display: inline-block;
  transform: translateX(-12px);
  transition: transform 400ms ease;
}
.button:hover .arrowSvg,
.startBtn:hover .arrowSvg,
.selectBtn:hover .arrowSvg {
  transform: translateX(6px);
}

/* inline message (error from your JS) */
#message{
  font-size: 0.95rem;
  color: #ff6b6b;
  min-height: 1.1rem;
  margin-top: 0.25rem;
}

/* footer inside form if needed */
.divI footer{
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* small helper: tight form (for compact screens) */
.form-row{
  display:flex;
  gap:0.75rem;
  align-items:center;
}

/* responsive tweaks */
@media (max-width:480px){
  .divI{
    padding: 1.25rem;
    border-radius: 12px;
  }
  .divI h1{
    font-size: 1.5rem;
  }
  .button{
    padding: 0.6rem;
    font-size: 0.95rem;
  }
}

/* optional: subtle page footer area matching your original footer look */
.page-footer{
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
}

/* Accessibility: visible focus for keyboard users on anchors & buttons */
a:focus, .button:focus, .tField:focus {
  outline: 3px solid rgba(0,174,255,0.16);
  outline-offset: 2px;
}
