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

body {
  font-family: 'Outfit', sans-serif;
  background: #0a0c12;
  color: #e8e6e1;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rays {
  position: absolute;
  inset: 0;
  background: url('rays.jpg') center/cover no-repeat;
  opacity: 0.45;
  animation: raysDrift 28s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(30, 60, 120, 0.18) 0%, transparent 55%),
              linear-gradient(180deg, rgba(10, 12, 18, 0.2) 0%, rgba(10, 12, 18, 0.85) 100%);
}

.geometric {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(180, 160, 100, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 100, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.4;
  animation: gridPulse 12s ease-in-out infinite;
}

header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 3rem;
}

.logo img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 5px rgba(201, 169, 110, 0.25));
  opacity: 0.95;
}

.login-btn {
  background: transparent;
  border: none;
  color: #c9c6bf;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  position: relative;
  transition: color 0.3s ease;
}

.login-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #8ab4d4;
  transition: width 0.4s ease;
}

.login-btn:hover {
  color: #fff;
}

.login-btn:hover::after {
  width: 100%;
}

main {
  position: relative;
  z-index: 10;
  height: calc(100vh - 90px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 14vh 2rem 0; /* slightly lower than original 8vh */
}

.content {
  max-width: 920px;
  animation: fadeUp 1.8s ease-out both;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #f4f1ea;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.subtitle {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #7eb0d4;
  font-weight: 400;
  opacity: 0.85;
}

.line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #b8a67a, transparent);
  margin: 2.4rem auto 0;
  opacity: 0.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #11141c;
  border: 1px solid rgba(180, 160, 100, 0.18);
  padding: 2.8rem 2.4rem;
  width: 90%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: #7eb0d4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}

form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(180, 160, 100, 0.3);
  color: #e8e6e1;
  padding: 0.8rem 0;
  margin-bottom: 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
}

form input:focus {
  border-bottom-color: #7eb0d4;
}

form button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(180, 160, 100, 0.4);
  color: #e8e6e1;
  padding: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: all 0.3s ease;
}

form button:hover {
  border-color: #7eb0d4;
  color: #fff;
  background: rgba(126, 176, 212, 0.06);
}

.modal-note {
  margin-top: 1.6rem;
  font-size: 0.75rem;
  color: #6a6a6a;
  text-align: center;
  letter-spacing: 0.05em;
}

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

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

@keyframes raysDrift {
  from { transform: scale(1.05) translateX(-2%); }
  to { transform: scale(1.12) translateX(2%); }
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

@media (max-width: 680px) {
  header {
    padding: 1.5rem 1.4rem;
  }
  .logo img {
    height: 40px;
    max-height: 40px;
    max-width: 48px;
  }
  h1 {
    letter-spacing: 0.04em;
  }
  .subtitle {
    letter-spacing: 0.28em;
    font-size: 0.75rem;
  }
}
