/* Responsible for login/signup page styling */
:root {
  --deep: #021F43;
  --deep-2: #032B5A;
  --blue: #0074D9;
  --green: #1B5E20;
  --text: #EAF6FF;
}

/* Base */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -200px, #0460C9 0%, #034A93 40%, var(--deep) 70%, var(--deep-2) 100%);
  overflow: hidden;
}

/* Title Home Link */
.home-link {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 60px);
  text-shadow: 0 4px 22px rgba(0,0,0,.45);
}
.home-link:hover {
  text-decoration: underline;
}

/* Authentication Section */
.auth {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.tagline {
  margin: 0 0 1.2rem;
  opacity: .9;
}
.card {
  width: min(92vw, 520px);
  background: linear-gradient(180deg, rgba(11,36,71,.85), rgba(2,31,67,.88));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  padding: 1rem 1rem 1.25rem;
}

/* Tabs (Login / Register */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 1rem;
}
.tab {
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: .7rem 1rem;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .25s ease;
  outline: none;
}
.tab.active {
  background: #fff;
  color: #0b2447;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

/* Panels for Login / Register */
.panel {
  display: none;
}
.panel.active {
  display: block;
}

/* Notification for Add Contact*/
.notification {
  margin: 10px 0 0.5rem;
  padding: 10px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 18px rgba(27,94,32,.35);
}

/* Input Fields for Login / Register */
.field {
  display: grid;
  gap: .4rem;
  margin: .9rem 0;
}
.field span {
  font-size: .95rem;
  opacity: .85;
}
.field input {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #092242;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 26px rgba(0,0,0,.22);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder {
  color: #bcd7ff88;
}
.field input:focus {
  border-color: #7cc9ff;
  box-shadow: inset 0 0 0 1px #7cc9ff66, 0 12px 26px rgba(0,0,0,.22);
}

/* Buttons and Click Events*/
.cta {
  width: 100%;
  margin-top: 1rem;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: 0 14px 28px rgba(0,116,217,.35);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,116,217,.45);
}
.cta:active {
  transform: translateY(0);
}
.cta.alt {
  background: var(--green);
  box-shadow: 0 14px 28px rgba(27,94,32,.35);
}
.cta.alt:hover {
  box-shadow: 0 18px 34px rgba(27,94,32,.35);
}

/* Bubbles */
.bubble-bed {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 0 28%, rgba(255,255,255,.7) 29% 55%, rgba(255,255,255,0) 60% 100%), #CFF3FF;
  box-shadow: 0 0 10px rgba(255,255,255,.25);
  opacity: 0;
  animation: rise linear infinite;
  filter: blur(.2px);
}

/* Keyframes for Bubble Animation */
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  12% { opacity: .95; }
  100% { opacity: 0; transform: translateY(-110vh) scale(1.18); }
}

/* Fish */
.swimlane {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fish-wrap {
  position: absolute;
  left: 0;
  bottom: 20vh;
  width: max-content;
  pointer-events: none;
}
.fish {
  display: block;
  width: 120px;
  opacity: .95;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
  animation: bob var(--bobDur, 4s) ease-in-out var(--bobDelay, 0s) infinite;
  transform: translateY(0) scaleX(var(--flip,1));
}

/* Keyframes for Fish Animation */
@keyframes swim-right {
  from { transform: translateX(-15vw); }
  to   { transform: translateX(115vw); }
}
@keyframes swim-left {
  from { transform: translateX(115vw); }
  to   { transform: translateX(-15vw); }
}
@keyframes bob {
  0%,100% { transform: translateY(0) scaleX(var(--flip,1)); }
  50%     { transform: translateY(var(--bob,12px)) scaleX(var(--flip,1)); }
}

@media (prefers-reduced-motion: reduce) {
  .fish, .fish-wrap {
    animation: none !important;
  }
}
