:root {
  --color-accent:    #ff2d6c;
  --color-accent2:   #29bcff;
}

/* -------------- Core background -------------- */
body.index-home {
  min-height: 100vh;
  background: url('loginbg.png') center center/cover no-repeat fixed #18191a;
  overflow: hidden;
}

/* Logo + Subtitle */
.logo-wrap {
  position: absolute;
  top: 7vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  width: 100%;
  pointer-events: none;
  user-select: none;
}
.login-logo {
  width: 410px; max-width: 94vw; margin: 0 auto 0.3em auto;
  filter: drop-shadow(0 4px 32px #ffffffcc) drop-shadow(0 0 90px #4ec8ff90);
  animation: pulse-logo 2.7s infinite alternate cubic-bezier(.63,.17,.47,1.15);
  pointer-events: none;
  user-select: none;
  display: block;
}
@keyframes pulse-logo {
  from { filter: drop-shadow(0 4px 32px #fff6) drop-shadow(0 0 40px #00e7ff40);}
  to   { filter: drop-shadow(0 4px 54px #fff9) drop-shadow(0 0 120px #4ec8ffcc);}
}
.subtitle {
  color: #e4e9f5;
  font-weight: 400;
  letter-spacing: .03em;
  font-size: 1.07rem;
  opacity: .82;
  text-shadow: 0 1px 16px #000, 0 0 2px #00e6ffb7;
  margin-bottom: .8em;
}

/* ---------- Hero Card + Buttons ---------- */
.hero-card {
  background: rgba(18, 22, 45, 0.85);
  padding: 3.1rem 2.8rem 2.2rem 2.8rem;
  border-radius: 22px;
  max-width: 470px;
  width: 99vw;
  margin: 28vh auto 0 auto;
  box-shadow: 0 8px 60px 0 #000b, 0 0 0 2px #29bcff25;
  border: 1.8px solid rgba(70,220,255,0.09);
  backdrop-filter: blur(14px) saturate(120%);
  text-align: center;
  opacity: 0; transform: translateY(60px) scale(0.98);
  transition: opacity .7s cubic-bezier(.62,0,.19,1.06), transform .85s cubic-bezier(.62,0,.19,1.06);
  z-index: 30;
}
.hero-card.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hero-card h2 {
  color: var(--color-accent);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.choices {
  display: flex;
  gap: 44px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.choice-btn {
  background: rgba(24,25,30,0.98);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  padding: 42px 54px 38px 54px;
  border-radius: 18px;
  border: 2.2px solid transparent;
  box-shadow: 0 8px 40px #0009, 0 1.5px 16px #29bcff99;
  transition: 
    transform 0.17s, 
    box-shadow 0.17s, 
    background 0.12s, 
    border-color .22s, 
    color .14s, 
    opacity .22s;
  cursor: pointer;
  letter-spacing: 0.01em;
  min-width: 210px;
  max-width: 300px;
  outline: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  pointer-events: auto;
  user-select: none;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.choice-btn .choice-icon {
  font-size: 2.4rem;
  margin-bottom: 4px;
  display: block;
}
.choice-btn .choice-txt {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
  letter-spacing: 0.01em;
}
.choice-btn.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.choice-btn:first-child { border: 2.2px solid var(--color-accent2); }
.choice-btn:last-child  { border: 2.2px solid var(--color-accent); }
.choice-btn:hover, .choice-btn:focus {
  background: rgba(33,38,60,0.99);
  color: #fff;
  box-shadow: 0 12px 32px #29bcff80, 0 2px 10px #ff2d6c77;
  border-color: var(--color-accent2);
  transform: translateY(-4px) scale(1.05) rotate(-2deg);
}
.choice-btn:last-child:hover, .choice-btn:last-child:focus {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px #ff2d6c90, 0 2px 10px #29bcff77;
}

/* Mobile styles */
@media (max-width: 700px) {
  .hero-card { padding: 2.1rem 0.4rem 1.7rem 0.4rem; }
  .choices { flex-direction: column; gap: 28px; }
  .choice-btn { font-size: 1.2rem; padding: 27px 0; min-width: 90vw; }
  .login-logo { width: 90vw; max-width: 99vw; }
}
@media (max-width: 420px) {
  .hero-card { margin-top: 23vh; }
}
.top-right-actions {
  position: fixed;
  top: 32px;
  right: 48px;
  z-index: 100;
  display: flex;
  gap: 16px;
}

.action-btn {
  background: rgba(29, 188, 255, 0.89);
  color: #fff;
  border: none;
  outline: none;
  padding: 0.62rem 1.32rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1.01rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 2px 16px #29bcff33, 0 0 6px #fff3;
  transition: background 0.18s, color 0.14s, box-shadow 0.2s;
  cursor: pointer;
  display: inline-block;
}

.action-btn:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 18px #ff2d6c99, 0 0 10px #fff2;
}

.logout-btn {
  background: rgba(255, 45, 108, 0.93);
}

.logout-btn:hover {
  background: #ff2d6c;
}
