/* =========================
   Animations / Links
========================= */
.hover-underline {
  color: #ffffff;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #00ffee);
  left: 0;
  transform: scaleX(0);
  transition: transform 0.4s ease-out;
}

.hover-underline::after {
  bottom: -6px;
  transform-origin: right;
}

.hover-underline::before {
  top: -6px;
  transform-origin: left;
}

.hover-underline:hover {
  color: #ffffff;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}

/* =========================
   Auth Card
========================= */
.auth-card {
  position: relative;
  padding: 2.2rem 2rem 2rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 255, 238, 0.03);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0,255,238,0.18),
    rgba(255,255,255,0.06),
    rgba(0,255,238,0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* =========================
   Logo 3D
========================= */
.logo-3d-wrap {
  position: relative;
  width: fit-content;
  perspective: 1000px;
}

.logo-3d-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at center, rgba(0,255,238,0.16), transparent 65%);
  filter: blur(18px);
  z-index: 0;
}

.logo-3d-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 78%;
  height: 18px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,255,238,0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.logo-3d {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 24px;
  transform: rotateX(12deg) rotateY(-10deg) translateZ(0);
  filter:
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 24px rgba(0, 255, 238, 0.2));
  transition: transform 0.5s ease, filter 0.5s ease;
}

.logo-3d:hover {
  transform: rotateX(6deg) rotateY(-4deg) translateY(-2px) scale(1.02);
  filter:
    drop-shadow(0 24px 34px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 28px rgba(0, 16, 15, 0.34));
}

/* =========================
   Login Button
========================= */
.login-button {
  position: relative;
  overflow: hidden;
  height: 3.35rem;
  padding: 0 2rem;
  border-radius: 1.4rem;
  background: linear-gradient(180deg, #141414 0%, #0e0e0f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.login-button:hover {
  color: #000000;
  font-weight: 600;
  transform: translateY(-1px);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.45),
    0 0 24px rgba(0,255,238,0.14);
  border-color: rgba(0, 255, 238, 0.18);
}

.login-button:hover::before {
  transform: scaleX(1);
}

.login-button-content {
  position: relative;
  z-index: 1;
}

.login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    #4fc8bf 0%,
    #00ffee 55%,
    #9ffff7 100%
  );
  transition: transform 0.475s ease;
}

/* =========================
   Floating Inputs
========================= */
.inputbox {
  position: relative;
  width: 100%;
  margin-top: 0.25rem;
}

.inputbox input {
  position: relative;
  width: 100%;
  height: 58px;
  padding: 22px 16px 10px;
  background: rgba(255, 255, 255, 0.025);
  outline: none;
  box-shadow: none;
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.02em;
  z-index: 10;
  transition:
    color 0.35s ease,
    background 0.35s ease;
}

.inputbox span {
  position: absolute;
  left: 0;
  top: 0;
  padding: 18px 16px 10px;
  font-size: 1rem;
  color: #8f8f8f;
  letter-spacing: 0.02em;
  transition: 0.35s ease;
  pointer-events: none;
  z-index: 11;
}

.inputbox i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 238, 0.28);
  background:
    linear-gradient(180deg, rgba(0,255,238,0.03), rgba(0,255,238,0.015));
  transition:
    0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  pointer-events: none;
  z-index: 9;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 0 0 rgba(0,255,238,0);
}

/* Active / Filled */
.inputbox input:focus ~ span,
.inputbox input:valid ~ span {
  color: #00ffee;
  transform: translateY(-11px) scale(0.84);
  transform-origin: left center;
}

.inputbox input:focus ~ i,
.inputbox input:valid ~ i {
  border-color: rgba(0, 255, 238, 0.85);
  background:
    linear-gradient(180deg, rgba(0,255,238,0.08), rgba(0,255,238,0.035));
  box-shadow:
    0 0 0 1px rgba(0,255,238,0.18),
    0 0 24px rgba(0,255,238,0.12),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Hover */
.inputbox:hover span {
  color: #c4fffb;
}

.inputbox:hover i {
  border-color: rgba(0, 255, 238, 0.55);
  box-shadow:
    0 0 18px rgba(0,255,238,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.inputbox input:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* =========================
   Kasgo Global Foundation
========================= */
html,
body {
  background: #000000;
}

.kasgo-body {
  background:
    radial-gradient(circle at top center, rgba(0,255,238,0.06), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0,255,238,0.04), transparent 22%),
    #000000;
}

.kasgo-page-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.kasgo-page-glow-center,
.kasgo-page-glow-top-left,
.kasgo-page-glow-bottom-right {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 1;
}

.kasgo-page-glow-center {
  top: 50%;
  left: 50%;
  width: 540px;
  height: 540px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(0,255,238,0.10), transparent 62%);
}

.kasgo-page-glow-top-left {
  top: 8%;
  left: 10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(0,255,238,0.07), transparent 66%);
}

.kasgo-page-glow-bottom-right {
  right: 10%;
  bottom: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 66%);
}

/* =========================
   Toasts
========================= */
.kasgo-toast {
  position: relative;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10,12,13,0.92), rgba(7,8,9,0.92));
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
}

.kasgo-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.03)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.kasgo-toast-success {
  border-color: rgba(0,255,238,0.22);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.35),
    0 0 24px rgba(0,255,238,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.kasgo-toast-success > div > div:first-child {
  color: #00ffee;
}

.kasgo-toast-error {
  border-color: rgba(255,89,89,0.24);
}

.kasgo-toast-error > div > div:first-child {
  color: #ff7c7c;
}

.kasgo-toast-warning {
  border-color: rgba(255,203,92,0.24);
}

.kasgo-toast-warning > div > div:first-child {
  color: #ffd166;
}

.kasgo-toast-info {
  border-color: rgba(0,255,238,0.18);
}

.kasgo-toast-info > div > div:first-child {
  color: #8ffdf6;
}

/* =========================
   Global Buttons
========================= */
.primary-kasgo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.4rem;
  border-radius: 16px;
  font-weight: 700;
  color: #071011;
  background: linear-gradient(90deg, #4fc8bf 0%, #00ffee 55%, #9ffff7 100%);
  border: 1px solid rgba(0,255,238,0.26);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    0 0 24px rgba(0,255,238,0.10);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.primary-kasgo-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(0,0,0,0.35),
    0 0 28px rgba(0,255,238,0.18);
  filter: brightness(1.03);
}

.secondary-kasgo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.4rem;
  border-radius: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(10,10,11,0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.secondary-kasgo-btn:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(0,255,238,0.24);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.35),
    0 0 20px rgba(0,255,238,0.08);
}

/* =========================
   Checkbox
========================= */
.kasgo-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}

.kasgo-checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1px solid rgba(0,255,238,0.34);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.kasgo-checkbox-row input[type="checkbox"]:hover {
  border-color: rgba(0,255,238,0.62);
  box-shadow: 0 0 16px rgba(0,255,238,0.10);
}

.kasgo-checkbox-row input[type="checkbox"]:checked {
  background: linear-gradient(180deg, rgba(0,255,238,0.18), rgba(0,255,238,0.10));
  border-color: rgba(0,255,238,0.88);
  box-shadow:
    0 0 0 1px rgba(0,255,238,0.18),
    0 0 18px rgba(0,255,238,0.12);
}

.kasgo-checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #00ffee;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
