:root {
  --obsidian: #0b0c10;
  --dark-slate: #1f2833;
  --sapphire: #45a29e;
  --light-cyan: #66fcf1;
  --silver: #c5c6c7;
  --white: #ffffff;
  --glass-bg: rgba(31, 40, 51, 0.6);
  --glass-border: rgba(102, 252, 241, 0.2);
  --font-main: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--obsidian);
  color: var(--silver);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--white);
  font-weight: 400;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: var(--sapphire);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--light-cyan);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.auth-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/gateway_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11, 12, 16, 0.4) 0%, var(--obsidian) 100%);
  z-index: 1;
}

.auth-box {
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

.auth-box h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.auth-box p {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-cyan);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.5rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--light-cyan);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, var(--sapphire), var(--dark-slate));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(45deg, var(--light-cyan), var(--sapphire));
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.4);
}

.error-msg {
  color: #ff4a4a;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.error-msg.visible {
  opacity: 1;
}

/* Global Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 2px;
  text-decoration: none;
}

.logo span {
  color: var(--light-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--silver);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--light-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--white);
}

/* Global Footer */
footer {
  background: var(--dark-slate);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.footer-brand p {
  color: var(--sapphire);
  letter-spacing: 1px;
}

.footer-contact h4, .footer-social h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: block;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--sapphire);
  border-color: var(--light-cyan);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
}

.footer-bottom a:hover {
  color: var(--light-cyan);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
