/* =============================================
   COCHIN PORT AUTHORITY — login-page.css
   COPA cinematic layout
   ============================================= */

/* ─── RESET ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #1a6dff;
  --brand-dark: #0047cc;
  --accent: #f0a500;
  --glass-bg: rgba(8, 14, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-light: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.55);
}

html,
body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #050a14;
  color: var(--text-light);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ─── CINEMATIC BACKGROUND ─── */
.page-bg {
  position: fixed;
  inset: -60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.72) saturate(1.15);
  transform: scale(1.06);
  z-index: 0;
  will-change: background-position;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(3, 8, 22, 0.72) 0%,
      rgba(3, 8, 22, 0.28) 45%,
      rgba(3, 8, 22, 0.72) 100%);
  z-index: 1;
}

/* ─── MAIN LAYOUT ─── */
.copa-main {
  position: relative;
  z-index: 10;
  height: 100vh;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vh 20px 45px;
  /* gap: 1.2vh; */
  overflow: hidden;
}

/* ─── GOV BRANDING ─── */
.gov-branding {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 50;
  pointer-events: none;
  width: 100%;
  text-align: center;
  padding: 0 15px;
}

.gov-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

#GLMIS {
  font-size: 32px;
  font-style: Bold;
  font-weight: 500;
}

.gov-ministry {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.gov-india {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ─── HERO TEXT ─── */
.copa-hero-text {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: heroFadeIn 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform;
  padding: 0 15px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copa-heading {
  font-family: 'Outfit', sans-serif;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.copa-heading::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin: 8px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(255, 200, 80, 0.1) 100%);
  animation: underlineDraw 0.9s 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes underlineDraw {
  to {
    width: 45%;
  }
}

.copa-heading-light {
  display: block;
  font-weight: 300;
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2px;
  animation: lightTextReveal 1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lightTextReveal {
  from {
    opacity: 0;
    transform: translateY(-15px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.copa-heading-bold {
  display: block;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #ffffff;
}

/* Per-letter drop animation */
.copa-letter {
  display: inline-block;
  overflow: visible;
  background: linear-gradient(0deg, #114eca 25%, #91ff00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: letterDrop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 0.08s + 0.45s);
}

@keyframes letterDrop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   CENTERED LOGIN PANEL
───────────────────────────────────────── */

.copa-login-panel {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: panelFadeIn 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Glass Card */
.copa-panel-inner {
  width: 100%;
  position: relative;
  background: rgba(10, 18, 35, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 20px 24px 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.35s ease;
}

/* Hover Effect */
.copa-panel-inner:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.52),
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Input Styling */
.copa-panel-inner .form-control {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  padding-left: 12px;
  box-shadow: none;
}

.copa-panel-inner .form-control:focus {
  border-color: rgba(102, 126, 234, 0.7);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.18);
}

/* Input Group */
.copa-panel-inner .input-group-text {
  border-radius: 10px 0 0 10px;
  border: none;
  min-width: 40px;
  justify-content: center;
}

/* Password Button */
.copa-panel-inner .input-group .btn {
  border-radius: 0 10px 10px 0;
}

/* Better spacing */
.copa-panel-inner .mb-2 {
  margin-bottom: 0.75rem !important;
}

.copa-panel-inner .mb-1 {
  margin-bottom: 0.5rem !important;
}

/* Login Button */
.btn-login {
  height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #1a6dff 0%, #003399 100%);
  border: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(95, 114, 255, 0.35);
}

/* Public Map Button */
#publicBtn {
  /* height: 40px; */
  border-radius: 10px;
  font-weight: 600;
  background-color: #8ec744;
}

/* Forgot Password */
.forgot {
  opacity: 0.85;
  transition: all 0.3s ease;
}

.forgot:hover {
  opacity: 1;
  text-decoration: underline !important;
}

/* ─── LOGIN HEADER IMAGE ─── */
.login-header-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── ATTEMPT COUNTER ─── */
.attempt-counter {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  background: #ffc107;
  color: #333;
  display: none;
}

/* ─── LOCKOUT OVERLAY ─── */
.lockout-overlay {
  text-align: center;
  padding: 10px;
}

.lockout-overlay.hidden {
  display: none;
}

.lockout-box {
  padding: 8px;
}

.lockout-icon {
  font-size: 2.5rem;
  color: #dc3545;
  margin-bottom: 8px;
}

.countdown-timer {
  font-family: 'Outfit', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #dc3545;
  letter-spacing: 0.05em;
  margin: 8px 0;
}

/* ─── CAPTCHA ─── */
.captcha-display {
  background-image: url('../../assets/images/captcha-image.png');
  font-weight: bold;
  border-radius: 5px;
  user-select: none;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 100%;
  color: #000;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.18) 50%, transparent 80%);
  animation: btnShimmer 3.5s 2s ease-in-out infinite;
}

@keyframes btnShimmer {
  0% {
    left: -100%
  }

  50%,
  100% {
    left: 160%
  }
}

/* ─── FORGOT LINK ─── */
.forgot {
  font-size: 0.78rem;
}

/* ─── STP LOGO ─── */
.stp-logo {
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ─── FOOTER ─── */
.copa-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 11px;
  padding: 8px 0;
  backdrop-filter: blur(6px);
}

.copa-footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.copa-footer a:hover {
  color: #667eea;
}

/* ─── SLIDE INDICATORS ─── */
.slide-indicators {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 10px;
  align-items: center;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.indicator.active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}

/* ─── RESET PASSWORD PAGE ─── */
.reset_container {
  margin: 0;
  min-height: 100vh;
  background-image: url("../../assets/images/banner1.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-card {
  background: rgba(126, 201, 250, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#resetForm input::placeholder {
  color: #f8f9fa !important;
  opacity: 1;
}

#resetForm input::-webkit-input-placeholder {
  color: #f8f9fa !important;
}

/* ─── RESPONSIVE BREAKPOINTS ─── */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .copa-main {
    padding: 3vh 30px 45px;
  }

  .copa-login-panel {
    max-width: 440px;
  }

  .copa-panel-inner {
    padding: 24px 28px 20px;
  }

  .gov-logo {
    height: 52px;
  }
}

/* Medium screens (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .copa-main {
    padding: 2.5vh 25px 45px;
  }

  .copa-login-panel {
    max-width: 410px;
  }

  .copa-panel-inner {
    padding: 20px 24px 18px;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .copa-main {
    padding: 2vh 20px 45px;
  }

  .copa-login-panel {
    max-width: 390px;
  }

  .copa-panel-inner {
    padding: 18px 20px;
    border-radius: 16px;
  }

  .copa-heading-light {
    font-size: clamp(0.75rem, 1.8vw, 1rem);
  }

  .copa-heading-bold {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .gov-logo {
    height: 44px;
  }

  .gov-ministry {
    font-size: 0.8rem;
  }

  .gov-india {
    font-size: 0.7rem;
  }

  #GLMIS {
    font-size: 28px;
  }
}

/* Small tablets and large phones (576px - 767px) */
@media (max-width: 767px) {
  .copa-main {
    padding: 1.5vh 16px 45px;
    gap: 10px;
  }

  .copa-login-panel {
    max-width: 370px;
  }

  .copa-panel-inner {
    padding: 16px 16px;
    border-radius: 14px;
  }

  .copa-heading-light {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    letter-spacing: 0.08em;
  }

  .copa-heading-bold {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .copa-panel-inner .form-control {
    height: 38px;
    font-size: 0.85rem;
  }

  .btn-login {
    height: 38px;
    font-size: 0.85rem;
  }

  #publicBtn {
    height: 38px;
    font-size: 0.85rem;
  }

  .gov-logo {
    height: 38px;
  }

  .gov-ministry {
    font-size: 0.75rem;
  }

  .gov-india {
    font-size: 0.65rem;
  }

  #GLMIS {
    font-size: 24px;
  }

  .slide-indicators {
    bottom: 55px;
  }

  .indicator.active {
    width: 20px;
  }
}

/* Mobile phones (up to 575px) */
@media (max-width: 575px) {
  .copa-main {
    padding: 1vh 12px 45px;
    gap: 8px;
  }

  .copa-login-panel {
    max-width: 100%;
    padding: 0 5px;
  }

  .copa-panel-inner {
    padding: 14px 14px;
    border-radius: 12px;
  }

  .copa-heading-light {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .copa-heading-bold {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  }

  .copa-heading::after {
    margin-top: 6px;
  }

  @keyframes underlineDraw {
    to {
      width: 35%;
    }
  }

  .copa-panel-inner .form-control {
    height: 36px;
    font-size: 0.8rem;
    padding-left: 8px;
  }

  .copa-panel-inner .input-group-text {
    min-width: 36px;
    font-size: 0.8rem;
  }

  .btn-login {
    height: 36px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  #publicBtn {
    height: 36px;
    font-size: 0.8rem;
  }

  .gov-logo {
    height: 34px;
  }

  .gov-ministry {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }

  .gov-india {
    font-size: 0.6rem;
  }

  #GLMIS {
    font-size: 20px;
  }

  .copa-panel-inner .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .copa-panel-inner .mb-1 {
    margin-bottom: 0.4rem !important;
  }

  .captcha-display {
    min-height: 32px;
    font-size: 0.8rem;
  }

  .lockout-box .countdown-timer {
    font-size: 1.5rem;
  }

  .slide-indicators {
    bottom: 50px;
    gap: 6px;
  }

  .indicator {
    width: 5px;
    height: 5px;
  }

  .indicator.active {
    width: 14px;
  }

  .copa-footer {
    font-size: 9px;
    padding: 4px 0;
  }

  .stp-logo {
    height: 0.9rem;
  }
}

/* Very small phones (up to 380px) */
@media (max-width: 380px) {
  .copa-main {
    padding: 0.5vh 6px 45px;
  }

  .copa-panel-inner {
    padding: 10px 8px;
    border-radius: 10px;
  }

  .copa-heading-bold {
    font-size: 1.1rem;
  }

  .copa-heading-light {
    font-size: 0.55rem;
  }

  .gov-logo {
    height: 28px;
  }

  #GLMIS {
    font-size: 16px;
  }

  .copa-panel-inner .form-control {
    height: 32px;
    font-size: 0.75rem;
    padding-left: 6px;
  }

  .copa-panel-inner .input-group-text {
    min-width: 32px;
    font-size: 0.75rem;
    padding: 0 6px;
  }

  .btn-login {
    height: 32px;
    font-size: 0.75rem;
  }

  #publicBtn {
    height: 32px;
    font-size: 0.75rem;
  }

  .forgot {
    font-size: 0.65rem !important;
  }
}

/* Height-based adjustments for laptops/short viewports to prevent scrolling */
@media (max-height: 640px) {
  .copa-hero-text {
    display: none !important;
  }

  .copa-main {
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 45px;
    gap: 10px;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .page-bg {
    filter: brightness(0.68) saturate(1.1);
  }
}

/* Print styles */
@media print {

  .page-bg,
  .page-overlay,
  .slide-indicators {
    display: none;
  }

  .copa-main {
    padding: 20px;
    background: white;
  }

  .copa-panel-inner {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .copa-footer {
    position: static;
    background: #f5f5f5;
    color: #333;
  }

  .copa-footer a {
    color: #333;
  }
}