/* ==========================================================================
   JNV BHASHA SETU — UNIFIED SMART LOGIN STYLESHEET
   File: public/css/components/unified-login.css
   Strict Compliance:  (Absolute Zero Dark Theme Policy)
   ========================================================================== */

.unified-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: 
    radial-gradient(circle at 15% 20%, rgba(219, 234, 254, 0.5) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(254, 243, 199, 0.4) 0%, transparent 45%),
    linear-gradient(145deg, #f8fafc 0%, #edf2f7 100%);
  color: #0f172a;
}

/* Top Institutional Header */
.unified-nav-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emblem-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
}

.emblem-icon-box svg {
  width: 24px;
  height: 24px;
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1e40af;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-text p {
  font-size: 13px;
  color: #475569;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.school-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
}

.school-tag-pill .status-dot {
  width: 8px;
  height: 8px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

/* Main Split-Screen Showcase Layout */
.unified-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.unified-auth-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

/* Left Showcase Panel */
.auth-showcase-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tricolor-accent-strip {
  width: 64px;
  height: 5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #ea580c 0%, #ffffff 50%, #16a34a 100%);
  border: 1px solid #cbd5e1;
}

.showcase-hero-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.showcase-hero-title span {
  color: #1e40af;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-hero-description {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Multilingual Floating Greeting Pills */
.multilingual-ticker-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
}

.greeting-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.greeting-pill:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 4px 8px rgba(30, 64, 175, 0.1);
}

.greeting-pill .lang-tag {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* Feature Cards */
.showcase-features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-mini-card:hover {
  transform: translateX(4px);
  border-color: #bfdbfe;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #eff6ff;
  color: #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.feature-card-text h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.feature-card-text p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Right Smart Login Card */
.auth-card-panel {
  display: flex;
  justify-content: center;
}

.smart-login-card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  box-shadow: 0 20px 45px -15px rgba(30, 64, 175, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.5);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-top-header {
  text-align: center;
}

.login-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.login-avatar-badge svg {
  width: 26px;
  height: 26px;
}

.card-top-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.card-top-header p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* Unified Form Controls */
.unified-login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-with-icon .field-icon svg {
  width: 18px;
  height: 18px;
}

.input-with-icon input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-with-icon input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-with-icon input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

/* Password Toggle Button */
.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 6px;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-toggle-password:hover {
  color: #0f172a;
}

.btn-toggle-password svg {
  width: 18px;
  height: 18px;
}

/* Auto-Role Live Preview Pill */
.role-detector-pill {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.role-detector-pill.detected-student {
  background-color: #ecfdf5;
  border-color: #86efac;
  border-style: solid;
  color: #065f46;
  font-weight: 600;
}

.role-detector-pill.detected-staff {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  border-style: solid;
  color: #1e40af;
  font-weight: 600;
}

/* Primary Action Button */
.btn-unified-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: all 0.2s ease;
}

.btn-unified-submit:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35);
  transform: translateY(-1px);
}

.btn-unified-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.btn-unified-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-unified-submit svg {
  width: 18px;
  height: 18px;
}

/* Quick Format Helpers */
.format-helper-footer {
  text-align: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
}

.format-helper-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.format-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.format-code-pill {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.format-code-pill:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.format-code-pill strong {
  color: #0f172a;
}

/* Bottom Institutional Footer */
.unified-nav-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Media Queries for Smartboards & Smaller Displays */
@media (max-width: 1024px) {
  .unified-auth-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .auth-showcase-panel {
    text-align: center;
    align-items: center;
  }
  .showcase-features-list {
    display: none;
  }
}

@media (max-width: 640px) {
  .smart-login-card {
    padding: 24px 20px;
  }
  .showcase-hero-title {
    font-size: 26px;
  }
  .unified-nav-header {
    padding: 12px 16px;
  }
}
