:root {
  --navy-deep: #0a1128;
  --navy: #0f1a34;
  --navy-mid: #1a2a52;
  --navy-light: #1e2b4d;
  --green-brand: #99c221;
  --green-light: #b5dc2c;
  --green-glow: rgba(153, 194, 33, 0.3);
  --sea-dark: #0c2340;
  --sea-mid: #133a5c;
  --sea-light: #1a5276;
  --foam: rgba(255, 255, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", "Montserrat", sans-serif;
  background-color: var(--navy-deep);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(
    180deg,
    #050d1f 0%,
    #0a1a3a 30%,
    #102a50 60%,
    #153a6a 100%
  );
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}

.moon {
  position: absolute;
  top: 8%;
  right: 15%;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 220, 0.9) 0%,
    rgba(255, 255, 200, 0.3) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: moonGlow 4s ease-in-out infinite alternate;
}

@keyframes moonGlow {
  0% {
    box-shadow: 0 0 40px rgba(255, 255, 200, 0.3);
  }
  100% {
    box-shadow: 0 0 80px rgba(255, 255, 200, 0.5);
  }
}

.ocean {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    var(--sea-light) 0%,
    var(--sea-mid) 30%,
    var(--sea-dark) 70%,
    var(--navy-deep) 100%
  );
}

.ocean::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 4px
  );
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100px);
  }
  100% {
    transform: translateX(100px);
  }
}

.wave {
  position: absolute;
  width: 200%;
  left: -50%;
}

.wave-back {
  top: -30px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%231a5276' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,15 1440,30 L1440,60 L0,60Z'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 720px 60px;
  animation: waveMove 12s linear infinite;
  opacity: 0.5;
}

.wave-mid {
  top: -20px;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%23133a5c' d='M0,25 C240,50 480,0 720,25 C960,50 1200,0 1440,25 L1440,50 L0,50Z'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 720px 50px;
  animation: waveMove 8s linear infinite reverse;
  opacity: 0.7;
}

.wave-front {
  top: -15px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40'%3E%3Cpath fill='%230c2340' d='M0,20 C180,40 360,0 540,20 C720,40 900,0 1080,20 C1260,40 1380,10 1440,20 L1440,40 L0,40Z'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 720px 40px;
  animation: waveMove 6s linear infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(720px);
  }
}

.ship-container {
  position: absolute;
  bottom: 48%;
  animation:
    shipSail 30s linear infinite,
    shipBob 4s ease-in-out infinite;
  z-index: 5;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes shipSail {
  0% {
    left: -350px;
  }
  100% {
    left: calc(100% + 350px);
  }
}

@keyframes shipBob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.ship-svg {
  width: 300px;
  height: auto;
}

/* Ship wake */
.ship-wake {
  position: absolute;
  bottom: -5px;
  left: -60px;
  width: 200px;
  height: 15px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent
  );
  border-radius: 50%;
  animation: wakePulse 2s ease-in-out infinite;
}

@keyframes wakePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.2);
  }
}

/* ===== BACKGROUND IMAGE REVEAL ===== */
.bg-reveal {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 17, 40, 0.4) 0%,
    rgba(10, 17, 40, 0.7) 100%
  );
  z-index: 1;
  opacity: 0;
  animation: bgFadeIn 3s ease-out 1.5s forwards;
}

@keyframes bgFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.floating-container {
  position: absolute;
  width: 40px;
  height: 20px;
  border-radius: 3px;
  opacity: 0.15;
  animation: floatUp 20s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.lighthouse {
  position: absolute;
  bottom: 48%;
  right: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.island-base {
  width: 100px;
  height: 25px;
  background: linear-gradient(to bottom, #444, #222);
  border-radius: 50% 50% 5px 5px;
  margin-top: -5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  position: relative;
}

.island-base::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -10%;
  width: 120%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(4px);
  border-radius: 50%;
}

@keyframes fadeInSlow {
  to {
    opacity: 1;
  }
}

.lighthouse-beam {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform-origin: center center;
  animation: beamRotate 6s linear infinite;
}

.lighthouse-beam::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -150px;
  width: 300px;
  height: 8px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 150, 0.4) 30%,
    rgba(255, 255, 150, 0.08) 50%,
    transparent 70%
  );
  border-radius: 50%;
}

@keyframes beamRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.login-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.logo-section {
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideDown 0.8s ease-out 0.3s forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(153, 194, 33, 0.3));
  transition: filter 0.3s;
}

.logo-img:hover {
  filter: drop-shadow(0 0 30px rgba(153, 194, 33, 0.5));
}

.login-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-brand);
  letter-spacing: 2px;
  margin-top: 10px;
  text-shadow: 0 0 30px var(--green-glow);
}

.login-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
}

.login-card {
  background: linear-gradient(
    135deg,
    rgba(30, 43, 77, 0.85) 0%,
    rgba(15, 26, 52, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(153, 194, 33, 0.15);
  padding: 40px 35px;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(153, 194, 33, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: cardAppear 0.8s ease-out 0.6s forwards;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(153, 194, 33, 0.03),
    transparent,
    rgba(153, 194, 33, 0.03),
    transparent
  );
  animation: cardShine 8s linear infinite;
  pointer-events: none;
}

@keyframes cardShine {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-header-text {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.card-header-text span {
  color: var(--green-brand);
}

.input-group-custom {
  position: relative;
  margin-bottom: 20px;
}

.input-group-custom .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(153, 194, 33, 0.5);
  font-size: 1.1rem;
  z-index: 2;
  transition: color 0.3s;
}

.input-group-custom input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  outline: none;
}

.input-group-custom input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.input-group-custom input:focus {
  border-color: var(--green-brand);
  background: rgba(153, 194, 33, 0.04);
  box-shadow: 0 0 0 3px rgba(153, 194, 33, 0.1);
}

.input-group-custom input:focus + .input-icon,
.input-group-custom input:focus ~ .input-icon {
  color: var(--green-brand);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  z-index: 2;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: var(--green-brand);
}

.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(
    135deg,
    var(--green-brand) 0%,
    var(--green-light) 100%
  );
  border: none;
  border-radius: 14px;
  color: var(--navy-deep);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 194, 33, 0.4);
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:active {
  transform: translateY(0);
}

.compass {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 80px;
  height: 80px;
  opacity: 0.06;
  animation: compassSpin 60s linear infinite;
  z-index: 2;
}

@keyframes compassSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 576px) {
  .login-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
  .login-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
  }
  .logo-img {
    height: 60px;
  }
  .login-card {
    padding: 30px 24px;
    margin: 0 10px;
  }
  .ship-svg {
    width: 200px;
  }
  .moon {
    width: 40px;
    height: 40px;
    top: 5%;
    right: 10%;
  }
}

@media (min-width: 1920px) {
  .logo-img {
    height: 120px;
  }
  .login-title {
    font-size: 2.4rem;
  }
  .login-card {
    max-width: 480px;
    padding: 50px 40px;
  }
  .ship-svg {
    width: 400px;
  }
}

.swal2-popup {
  font-family: "Outfit", "Montserrat", sans-serif !important;
  border-radius: 20px !important;
  background: var(--navy-light) !important;
  color: #fff !important;
  border: 1px solid rgba(153, 194, 33, 0.2) !important;
}

.btn-confirm {
  background: linear-gradient(
    135deg,
    var(--green-brand),
    var(--green-light)
  ) !important;
  color: var(--navy-deep) !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  border: none !important;
}
.form-check-custom input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.form-check-custom input[type="checkbox"]:hover {
  border-color: rgba(153, 194, 33, 0.5) !important;
  background: rgba(153, 194, 33, 0.04);
}

.form-check-custom input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--green-brand) 0%, var(--green-light) 100%);
  border-color: var(--green-brand) !important;
  box-shadow: 0 0 12px rgba(153, 194, 33, 0.35);
}

.form-check-custom input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 7px;
  border: solid var(--navy-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
