/* ============================================
   Private Access Portal — Password Gate
   ============================================ */

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

:root {
  --saffron: #ff7722;
  --saffron-deep: #e85d04;
  --saffron-soft: #ffb380;
  --navy: #0b1b3b;
  --navy-deep: #050e22;
  --gold: #c8a96a;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--navy-deep);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.gate-bg {
  position: fixed;
  inset: 0;
  background-image: url('../../images/Anil-Bonde-1.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(.45) saturate(1.1);
  transform: scale(1.1);
  z-index: 0;
}
.gate-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px circle at 30% 30%, rgba(255,119,34,.25), transparent 50%),
    radial-gradient(800px circle at 75% 75%, rgba(11,27,59,.7), transparent 50%),
    linear-gradient(135deg, rgba(5,14,34,.85), rgba(5,14,34,.7));
}

.flag-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, #138808 66.66% 100%);
  z-index: 4;
}

.gate-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 30px 30px;
}

.gate-header {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.gate-header .mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(232,93,4,.55);
}
.gate-header .text { line-height: 1.2; }
.gate-header .name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
}
.gate-header .role {
  font-size: 10.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

.gate-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.gate-panel {
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 50px 44px;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.18);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1);
}
.gate-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron-soft), transparent);
  transform: translateX(-50%);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gate-emblem {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  box-shadow:
    0 0 0 6px rgba(255,119,34,.18),
    0 12px 30px -8px rgba(232,93,4,.55);
  animation: glow 2.4s ease-in-out infinite alternate;
}
@keyframes glow {
  from { box-shadow: 0 0 0 6px rgba(255,119,34,.15), 0 12px 30px -8px rgba(232,93,4,.4); }
  to   { box-shadow: 0 0 0 10px rgba(255,119,34,.25), 0 16px 40px -6px rgba(232,93,4,.7); }
}

.gate-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--saffron-soft);
  font-weight: 600;
  margin-bottom: 14px;
}

.gate-panel h1 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.gate-panel .sub {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  margin-bottom: 34px;
  line-height: 1.6;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}
.input-group input {
  width: 100%;
  padding: 16px 50px 16px 48px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: .04em;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
}
.input-group input::placeholder { color: rgba(255,255,255,.4); letter-spacing: .12em; }
.input-group input:focus {
  outline: none;
  border-color: var(--saffron);
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 4px rgba(255,119,34,.15);
}
.input-group .lock {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--saffron-soft);
  font-size: 16px;
}
.input-group .toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: all .3s ease;
  background: transparent;
  border: 0;
}
.input-group .toggle:hover { color: var(--saffron-soft); background: rgba(255,255,255,.08); }
.input-group .toggle .eye-off { display: none; }
.input-group.show .eye-on { display: none; }
.input-group.show .eye-off { display: block; }

.gate-error {
  font-size: 13px;
  color: #ff8a8a;
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.25);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
  height: 0;
  padding-top: 0; padding-bottom: 0;
  margin: 0;
  overflow: hidden;
}
.gate-error.show {
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 16px;
  padding: 10px 14px;
  height: auto;
}

.gate-submit {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  position: relative;
  overflow: hidden;
  transition: all .4s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 12px 30px -8px rgba(232,93,4,.55);
}
.gate-submit::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .8s;
}
.gate-submit:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -8px rgba(232,93,4,.7); }
.gate-submit:hover::after { left: 100%; }
.gate-submit.loading { pointer-events: none; opacity: .8; }
.gate-submit .text { display: inline-block; }
.gate-submit.loading .text { opacity: 0; }
.gate-submit .spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.gate-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.gate-footnote {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.gate-footnote::before, .gate-footnote::after {
  content: "";
  height: 1px; width: 30px;
  background: rgba(255,255,255,.2);
}

.gate-bottom {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.5);
}
.gate-bottom a { color: var(--saffron-soft); text-decoration: none; }
.gate-bottom a:hover { color: var(--saffron); }

@media (max-width: 600px) {
  .gate-panel { padding: 40px 28px; }
  .gate-panel h1 { font-size: 32px; }
  .gate-header .text { display: none; }
}
