/* ==========================================================================
   ICC Finance • Blue Glow Split Login (2025 refresh)
   ========================================================================== */

/* ---------- Global Theme ---------- */
:root {
  --accent: #1498ff; /* ICC blue accent */
  --accent-soft: #1c89ff;
  --text: #ffffff;
  --muted: #cbd5e1;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 12px 28px rgba(20, 108, 208, 0.3);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   SPLIT LAYOUT
   ========================================================================== */
.split-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(to right, #0f4fa8 0%, #146cd0 50%, #1c89ff 100%);
  overflow: hidden;
}

/* Divider glow + moving beam */
.split-login::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(20, 152, 255, 0) 0%,
    rgba(20, 152, 255, 0.7) 50%,
    rgba(20, 152, 255, 0) 100%
  );
  box-shadow: 0 0 8px rgba(20, 152, 255, 0.8);
  z-index: 6;
}
.split-login::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 120px;
  border-radius: 6px;
  background: linear-gradient(
    to bottom,
    rgba(20, 152, 255, 0) 0%,
    rgba(20, 152, 255, 1) 50%,
    rgba(20, 152, 255, 0) 100%
  );
  transform: translateX(-50%);
  animation: beamMove 4.5s ease-in-out infinite;
  z-index: 7;
}
@keyframes beamMove {
  0% {
    top: -10%;
    opacity: 0.5;
  }
  45% {
    top: 80%;
    opacity: 1;
  }
  50% {
    top: 85%;
    opacity: 0.8;
  }
  95% {
    top: -5%;
    opacity: 0.6;
  }
  100% {
    top: -10%;
    opacity: 0.5;
  }
}

/* ==========================================================================
   LEFT • Hero Image
   ========================================================================== */
.hero-side {
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.05)
    ),
    url("/pages/img/student-login-hero.jpg") center/cover no-repeat;
  filter: saturate(0.9) brightness(1.05);
  position: relative;
  opacity: 0;
  animation: fadeInHero 2.2s ease forwards;
}
@keyframes fadeInHero {
  from {
    opacity: 0;
    filter: brightness(70%);
  }
  to {
    opacity: 1;
    filter: brightness(100%);
  }
}
.hero-text {
  position: absolute;
  bottom: 8%;
  left: 8%;
  color: #fff;
  max-width: 360px;
  animation: heroSlide 1.5s ease forwards;
}
@keyframes heroSlide {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.hero-text h2 {
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}
.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ==========================================================================
   RIGHT • Login Panel (blue base)
   ========================================================================== */
.right-login {
  background: linear-gradient(135deg, #0a2e73 0%, #146cd0 50%, #1c89ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInPanel 1.6s ease 0.3s both;
}
@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   LOGIN CARD • Glass Panel
   ========================================================================== */
.card {
  width: 100%;
  max-width: 500px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  text-align: center;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(20, 108, 208, 0.4);
}

/* ==========================================================================
   TITLES
   ========================================================================== */
.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   ROLE CHIPS
   ========================================================================== */
.roles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(20, 152, 255, 0.6);
}
.chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 18px rgba(20, 152, 255, 0.6);
}

/* ==========================================================================
   FORM INPUTS + BUTTONS
   ========================================================================== */
label {
  display: block;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 6px;
}
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(20, 152, 255, 0.35);
  outline: none;
}

.btn {
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #18b6f6 0%, #1498ff 100%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(24, 182, 246, 0.4);
}

/* Google button */
#google-btn {
  background: linear-gradient(135deg, #fff 0%, #eaeaea 100%);
  color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
#google-btn:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .split-login {
    grid-template-columns: 1fr;
  }
  .hero-side {
    height: 40vh;
  }
  .right-login {
    height: 60vh;
    padding: 1.5rem;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .split-login::before,
  .split-login::after {
    display: none;
  }
}
.card {
  width: 100%;
  max-width: 500px;
  padding: 36px 32px;
  border-radius: 18px;

  /* black glass look */
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.3);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.4);
}
.card {
  width: 100%;
  max-width: 500px;
  padding: 36px 32px;
  border-radius: 18px;

  /* dark navy glass look */
  background: rgba(10, 25, 55, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 24px rgba(20, 108, 208, 0.25);
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 32px rgba(20, 108, 208, 0.3);
}
