/* Student Panel — aligned with Viva admin login + landing (mint / blue / violet) */

:root {
  --sp-brand: #11a592;
  --sp-accent: #2f7ef1;
  --sp-violet: #7b57f9;
  --sp-text: #101c37;
  --sp-muted: #61708d;
  --sp-line: #d7e1f5;
  --sp-card: rgba(255, 255, 255, 0.92);
  --sp-card-border: rgba(255, 255, 255, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.student-doc {
  min-height: 100%;
  height: 100%;
}

body.student-page {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--sp-text);
  overflow-x: hidden;
  background: #e8eef6;
}

/* Brand strip — same gradient as .viva-top-strip / admin (in flow so header is not covered) */
.student-page-strip {
  flex-shrink: 0;
  width: 100%;
  height: 8px;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, var(--sp-brand), var(--sp-accent), var(--sp-violet));
}

/* Layered atmosphere — mirrors viva-admin-login-bg */
.student-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(232, 250, 246, 0.55) 0%, transparent 42%, rgba(238, 234, 255, 0.5) 100%),
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 210, 193, 0.22), transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(47, 126, 241, 0.12), transparent 38%),
    radial-gradient(circle at 92% 72%, rgba(123, 87, 249, 0.14), transparent 36%),
    linear-gradient(180deg, #edf3ff 0%, #e4ecf8 50%, #e8eef6 100%);
  pointer-events: none;
}

.student-page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  pointer-events: none;
}

.student-page-orb--a {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -12%;
  right: -18%;
  background: rgba(47, 126, 241, 0.35);
}

.student-page-orb--b {
  width: min(360px, 55vw);
  height: min(360px, 55vw);
  bottom: -8%;
  left: -14%;
  background: rgba(17, 165, 146, 0.28);
}

.student-page-orb--c {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(123, 87, 249, 0.2);
}

.student-header {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.student-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 24px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.student-header-home {
  font-size: 0.92rem;
  font-weight: 600;
  color: #5b4fc9;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.student-header-home:hover {
  color: #4338ca;
}

.student-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.student-header-cap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.student-header-cap svg {
  width: 26px;
  height: 26px;
}

.student-header-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.student-main {
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px 40px;
}

.student-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--sp-card);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 28px) 28px;
  border: 1px solid var(--sp-card-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 56px rgba(23, 61, 112, 0.14),
    0 8px 24px rgba(23, 61, 112, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.student-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(199, 215, 242, 0.35) 45%,
    rgba(17, 165, 146, 0.2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.student-card > h1 {
  position: relative;
  margin: 0 0 22px;
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sp-text);
}

.student-viva-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.student-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.student-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.student-field .req {
  color: #dc2626;
  font-weight: 700;
}

.student-field input,
.student-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--sp-text);
  border: 1px solid #c7d5ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.student-field select {
  cursor: pointer;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2361708d' d='M6 8L1 3h10z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 12px center, 0 0;
  background-size: 12px 12px, 100% 100%;
  padding-right: 36px;
}

.student-field input:hover,
.student-field select:hover {
  border-color: #94a3b8;
}

.student-field input:focus,
.student-field select:focus {
  outline: none;
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 3px rgba(47, 126, 241, 0.2);
}

.student-field select:focus {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231560a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fff 0%, #fff 100%);
}

.student-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

@media (max-width: 520px) {
  .student-form-grid {
    grid-template-columns: 1fr;
  }
}

.student-submit {
  margin-top: 6px;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, var(--sp-brand) 0%, var(--sp-accent) 48%, #5a6cf0 100%);
  box-shadow: 0 4px 18px rgba(47, 126, 241, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.student-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 26px rgba(47, 126, 241, 0.42);
}

.student-submit:active {
  transform: translateY(1px);
}

.student-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(47, 126, 241, 0.4);
}

.student-form-feedback {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #1e40af;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.student-form-feedback[hidden] {
  display: none;
}

/* Footer — same stacking as admin login (light page) */
.site-footer--student-panel {
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

.site-footer--student-panel .footer-wrap--with-contact {
  max-width: min(1120px, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(14px, 3vw, 28px);
  padding-right: clamp(14px, 3vw, 28px);
}
