:root {
  --primary: #3b82f6;
  --primary-hover: color-mix(in srgb, var(--primary) 85%, #000000);
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --panel-bg: #ffffff;
  --body-bg: #f8fafc;
  --hero-gradient: linear-gradient(135deg, #180052 0%, #3b2bc4 100%);
  --accent: #f4b63f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow-x: hidden;
}

.login-shell {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  background-color: var(--panel-bg);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 40%), #ffffff;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.school-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.header-section {
  margin-bottom: 28px;
}

.portal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.header-section h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.header-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: 20px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  font-weight: 500;
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}

.password-toggle {
  position: absolute;
  right: 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}

.password-toggle:hover {
  color: var(--primary);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.forgot-password:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  height: 48px;
  background-color: var(--primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 25%, transparent);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-submit:disabled {
  background-color: #cbd5e1;
  box-shadow: none;
  cursor: wait;
  transform: none;
}

.alert-error {
  display: none;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4;
  font-weight: 600;
}

.alert-success {
  display: none;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4;
  font-weight: 600;
}

.footer-text {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Creative Panel Styling */
.creative-panel {
  position: relative;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.glowing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #6d28d9;
  bottom: -150px;
  left: -100px;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  color: #ffffff;
}

.tagline {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.panel-content h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.panel-content p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  color: var(--accent);
  margin-top: 2px;
}

.feature-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.feature-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  
  .creative-panel {
    display: none;
  }
  
  .auth-panel {
    padding: 30px 20px;
    height: 100vh;
  }
}
