* {
  box-sizing: border-box;
}

:root {
  --pink-950: #3d0b2f;
  --pink-900: #5b0f45;
  --pink-800: #83135f;
  --pink-700: #b41778;
  --pink-600: #e21b8f;
  --pink-500: #ff3fa9;
  --pink-400: #ff78c4;
  --text: #1c2533;
  --muted: #7e8794;
  --white: #ffffff;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff0f8;
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 39% 61%;
  overflow: hidden;
  background: #fff;
}

.login-panel {
  min-height: 100vh;
  padding: 42px 58px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 24% 10%, rgba(255, 120, 196, 0.34), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.10), transparent 22%),
    linear-gradient(135deg, #3d0b2f 0%, #75124f 46%, #e21b8f 100%);
}

.login-panel::before {
  content: "★";
  position: absolute;
  left: 28px;
  bottom: 35px;
  font-size: 210px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  transform: rotate(-20deg);
  pointer-events: none;
}

.brand-box {
  width: min(100%, 460px);
  text-align: center;
  position: relative;
  z-index: 1;
}

.cap-logo {
  width: 120px;
  height: 92px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}

.cap-logo svg {
  width: 100%;
  height: 100%;
}

.brand-box h1 {
  margin: 0;
  font-size: clamp(42px, 4vw, 62px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.brand-box h2 {
  margin: 10px 0 0;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.star-line {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 230px;
  margin: 25px auto 14px;
  color: rgba(255, 255, 255, 0.8);
}

.star-line span {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.17);
}

.star-line b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.brand-box p {
  margin: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.login-form {
  width: min(100%, 440px);
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

.iam {
  margin: 0 0 17px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}

.role-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 34px;
}

.role {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.4px solid rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  transition: 0.22s ease;
  font-size: 14px;
}

.role:hover,
.role.active {
  transform: translateY(-3px);
  border-color: transparent;
  color: #fff;
  background: linear-gradient(145deg, var(--pink-500), var(--pink-700));
  box-shadow: 0 18px 36px rgba(180, 23, 120, 0.35);
}

.role svg {
  width: 39px;
  height: 39px;
}

.input-wrap {
  width: 100%;
  height: 62px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.field-icon {
  width: 54px;
  text-align: center;
  font-size: 21px;
  opacity: 0.42;
}

.input-wrap input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  font-size: 21px;
  color: #2e3645;
  background: transparent;
}

.input-wrap input::placeholder {
  color: #a9b0bc;
}

.eye-btn {
  width: 52px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink-500);
}

.login-btn {
  width: 238px;
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 34px;
  color: #fff;
  font-size: 21px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff3fa9, #d91688);
  box-shadow: 0 16px 34px rgba(180, 23, 120, 0.32);
  transition: 0.22s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff78c4, #c8137a);
}


.login-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.login-btn.loading {
  box-shadow: 0 10px 24px rgba(180, 23, 120, 0.22);
}

.login-error {
  min-height: 22px;
  margin: 16px auto 0;
  max-width: 360px;
  text-align: center;
  color: #ffe2f2;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.forgot {
  display: block;
  width: 250px;
  margin: 45px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  text-decoration: none;
}

.forgot:hover {
  color: #fff;
}

.welcome-panel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}

.welcome-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 45% 26%, rgba(255, 63, 169, 0.11), transparent 28%),
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.62) 16%, rgba(255,255,255,0) 34%);
  z-index: 2;
}

.welcome-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 74px 40px 22px;
}

.welcome-content h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -1px;
  color: #242d3b;
}

.welcome-content h2 span {
  color: #e21b8f;
}

.welcome-content p {
  margin: 22px 0 24px;
  font-size: 23px;
  color: #7b8797;
}

.website-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff3fa9, #d91688);
  color: #fff;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(216, 22, 136, 0.28);
}

.school-hero {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  border-top-left-radius: 32px;
  overflow: hidden;
}

.school-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-panel {
    min-height: auto;
    padding: 34px 22px 42px;
  }

  .welcome-panel {
    min-height: 540px;
  }

  .role-options {
    gap: 12px;
  }

  .role {
    width: 92px;
    height: 92px;
  }
}

@media (max-width: 520px) {
  .brand-box h1 {
    font-size: 38px;
  }

  .role {
    width: 86px;
    height: 86px;
    font-size: 13px;
  }

  .input-wrap input {
    font-size: 18px;
  }

  .welcome-content {
    padding: 42px 20px 20px;
  }

  .school-hero {
    height: 62%;
  }
}
