:root { --brand:#e67e22; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #f7fbff 0%, #ffffff 100%);
  overflow: hidden;
}
body.noscroll { overflow: hidden; }

.logo {
  max-width: 450px;
  margin-bottom: 20px;
  animation: logoArrive 5s ease-out forwards;
}
@keyframes logoArrive {
  0%   { transform: scale(0.3) translateY(150px); opacity: 0; }
  40%  { transform: scale(0.6) translateY(50px); opacity: 0.6; }
  70%  { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.highway {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -30px;
  animation: highwayCollapse 5s ease-out forwards;
}
@keyframes highwayCollapse {
  0%   { height: 220px; }
  70%  { height: 120px; }
  100% { height: 0; }
}
.road {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #333 60%, transparent 100%);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  animation: roadCollapse 5s ease-out forwards;
}
@keyframes roadCollapse {
  0% { clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(48% 0, 52% 0, 52% 100%, 48% 100%); }
}
.road-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  background: repeating-linear-gradient(to top, white 0 30px, transparent 30px 60px);
  animation: dashMove 5s ease-out forwards, lineCollapse 5s ease-out forwards;
}
@keyframes dashMove {
  0%   { background-position: 0 0; }
  70%  { background-position: 0 -300px; }
  100% { background-position: 0 -360px; }
}
@keyframes lineCollapse { 0% {height:100%;} 100% {height:0;} }

.auth-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  opacity: 0;
  animation: buttonsSlideUp 5s ease-out forwards;
}
@keyframes buttonsSlideUp {
  0%, 70% { opacity: 0; transform: translateY(80px); }
  100%    { opacity: 1; transform: translateY(0); }
}
.auth-buttons a {
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.signup { background: var(--brand); color: #fff; }
.signup:hover { background: #cf6a17; }
.login { border: 2px solid var(--brand); color: var(--brand); background: #fff; }
.login:hover { background: var(--brand); color: #fff; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  padding: 12px 5px;
  font-size: 15px;
}
.bottom-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.bottom-nav a:hover {
  background: #f5f5f5;
  color: var(--brand);
}
.bottom-nav a.active {
  background: var(--brand);
  color: #fff;
  font-weight: bold;
}

.modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45);
  opacity: 0; transition: opacity .25s ease;
}
.modal.open .modal-backdrop { opacity: 1; }

.modal-card {
  position: relative;
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  padding: 26px 22px 24px;
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  box-sizing: border-box;
}
.modal.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute; top: 10px; right: 10px;
  background: transparent; border: 0; font-size: 22px; line-height: 1;
  cursor: pointer; color: #666; padding: 6px; border-radius: 8px;
}
.modal-close:hover { background:#f5f5f5; }

.modal-logo {
  display: block;
  width: 160px; margin: 8px auto 6px auto;
}
.modal-title {
  text-align: center; font-size: 24px; margin: 6px 0 16px 0; color:#333;
}

.form-group { margin-bottom: 14px; }
label { display:block; font-size: 13px; color:#555; margin-bottom:6px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; padding: 12px;
  border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230,126,34,.15);
  outline: none;
}
.submit-btn {
  width: 100%; padding: 13px 16px; border: 0;
  border-radius: 8px; background: var(--brand); color:#fff;
  font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s;
}
.submit-btn:hover { background:#cf6a17; }

.alt-link { text-align:center; margin-top:12px; font-size:14px; color:#555; }
.alt-link a { color: var(--brand); text-decoration:none; font-weight:700; }
.alt-link a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .logo { max-width: 280px; }
  .highway { height: 150px; }
  .auth-buttons a { font-size: 15px; padding: 10px 24px; }
  .bottom-nav { font-size: 14px; gap: 15px; }
}
@media (max-width: 480px) {
  .logo { max-width: 200px; }
  .highway { height: 120px; }
  .auth-buttons { gap: 12px; }
  .auth-buttons a { font-size: 14px; padding: 8px 20px; }
  .bottom-nav { font-size: 13px; gap: 10px; }
}
