/* ============================================================
   OSCE Digital — Modern Login Page Styles
   Matching Yarsi Pratama University Official Design
   ============================================================ */

:root {
  --primary-orange: #EA580C;
  --primary-amber: #F59E0B;
  --dark-navy: #0B1329;
  --mid-navy: #111E38;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --input-bg: #F8FAFC;
}

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

body.login-body {
  min-height: 100vh;
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #F8FAFC;
  color: var(--text-main);
  overflow-x: hidden;
  display: flex;
}

/* ============================================================
   MAIN WRAPPER & SPLIT LAYOUT
   ============================================================ */
.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  background: #F8FAFC;
}

/* ============================================================
   LEFT PANEL — HERO & BRANDING
   ============================================================ */
.login-brand {
  position: relative;
  width: 50%;
  min-width: 520px;
  max-width: 760px;
  background: linear-gradient(155deg, #091021 0%, #0F1C36 45%, #0B1426 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px 40px 56px;
  overflow: hidden;
  color: #FFFFFF;
  z-index: 2;
}

/* Campus Building Background with Blend */
.brand-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../uploads/foto/campus_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.18;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
}

/* Dark Gradient Vignette */
.brand-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, rgba(9, 16, 33, 0.6) 0%, rgba(9, 16, 33, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Organic Wave Divider SVG on the Right of Left Panel */
.brand-wave-divider {
  position: absolute;
  top: 0;
  right: -1px;
  width: 140px;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.brand-wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Foreground Content */
.brand-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

/* Top Brand Logo Header */
.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.brand-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-org {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #FFFFFF;
}

.brand-dept {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.7);
}

/* Main Hero Typography */
.brand-hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.brand-hero-title .highlight-orange {
  color: var(--primary-amber);
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #EA580C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-institution {
  font-size: 18px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 16px;
}

.brand-desc {
  font-size: 13.5px;
  color: rgba(226, 232, 240, 0.7);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 34px;
}

/* Feature Items List */
.brand-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-badge {
  width: 44px;
  height: 44px;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-amber);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover .feature-badge {
  transform: scale(1.05);
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.2);
}

.feature-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.6);
  line-height: 1.4;
}

/* Handwritten Bottom Tagline */
.brand-footer-tagline {
  position: relative;
  z-index: 5;
  margin-top: 36px;
}

.tagline-cursive {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.15;
  display: inline-block;
  transform: rotate(-4deg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tagline-cursive .highlight-word {
  color: #FCD34D;
  position: relative;
}

.tagline-cursive .tagline-stroke {
  display: block;
  width: 110px;
  height: 6px;
  margin-top: -2px;
}

/* ============================================================
   RIGHT PANEL — LOGIN FORM & CARD
   ============================================================ */
.login-form-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background-color: #F8FAFC;
  z-index: 1;
}

/* Top Right Slogan: Smart Campus / Better Future */
.top-tagline-container {
  position: absolute;
  top: 32px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.top-tagline-main {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.2px;
}

.top-tagline-curve {
  margin: 1px 0 2px 0;
}

.top-tagline-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

/* Decorative Dot Grid Pattern */
.dots-grid-decoration {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 120px;
  background-image: radial-gradient(#CBD5E1 2.2px, transparent 2.2px);
  background-size: 14px 14px;
  opacity: 0.8;
  pointer-events: none;
}

/* Floating Clean White Login Card */
.login-form-container {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border-radius: 26px;
  padding: 38px 36px 32px 36px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  z-index: 10;
}

/* Card Header */
.card-logo-badge {
  width: 56px;
  height: 56px;
  background: #F1F5F9;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-logo-badge img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.card-title {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Alerts (Success & Error) */
.login-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
  animation: fadeIn 0.3s ease;
}

.login-alert .alert-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.success {
  background: #E8F8EE;
  color: #15803D;
  border-color: #BBF7D0;
}

.login-alert.error {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FECACA;
}

.alert-close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 0 4px;
}

.alert-close-btn:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Groups & Inputs */
.login-form {
  margin-bottom: 22px;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  background: #FFFFFF;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.input-icon-left {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.2s;
}

.input-wrapper:focus-within .input-icon-left {
  color: var(--primary-orange);
}

.form-control-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  font-size: 13.5px;
  font-family: inherit;
  border: none;
  background: transparent;
  color: #0F172A;
  outline: none;
}

.form-control-input::placeholder {
  color: #94A3B8;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: color 0.2s;
}

.btn-toggle-pass:hover {
  color: #334155;
}

/* Primary Submit Button */
.btn-submit-login {
  width: 100%;
  padding: 13.5px 20px;
  background: linear-gradient(90deg, #EA580C 0%, #F97316 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-top: 22px;
  letter-spacing: 0.2px;
}

.btn-submit-login:hover:not(:disabled) {
  background: linear-gradient(90deg, #DC2626 0%, #EA580C 100%);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.42);
  transform: translateY(-1px);
}

.btn-submit-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Demo Accounts Box */
.demo-accounts-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 20px;
}

.demo-box-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 11px;
}

.demo-box-header svg {
  color: #64748B;
}

.demo-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-account-row:hover {
  border-color: #EA580C;
  background: #FFFBF9;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.demo-role-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3.5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  min-width: 68px;
}

.demo-role-badge.role-admin {
  background: #0F172A;
  color: #FFFFFF;
}

.demo-role-badge.role-dosen {
  background: #FFEDD5;
  color: #EA580C;
}

.demo-role-badge.role-mhs {
  background: #DBEAFE;
  color: #2563EB;
}

.demo-credentials {
  font-size: 12px;
  color: #64748B;
  font-family: 'Consolas', 'Courier New', monospace;
  font-weight: 600;
}

/* Card Bottom Footer */
.login-card-footer {
  text-align: center;
  margin-top: 24px;
}

.login-card-footer p {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

/* ============================================================
   REGISTRATION & OTP STYLES
   ============================================================ */

/* Registration Card (Wider for 2-column fields) */
.register-form-container {
  width: 100%;
  max-width: 580px;
  background: var(--card-bg);
  border-radius: 26px;
  padding: 38px 36px 32px 36px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Stepper Progress Bar */
.reg-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 0 4px;
}

.reg-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #94A3B8;
  position: relative;
  transition: color 0.3s ease;
}

.reg-step.active {
  color: var(--primary-orange);
}

.reg-step.completed {
  color: #16A34A;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #F1F5F9;
  color: #64748B;
  border: 2px solid #E2E8F0;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.reg-step.active .step-number {
  background: var(--primary-orange);
  color: #FFFFFF;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18);
  transform: scale(1.05);
}

.reg-step.completed .step-number {
  background: #16A34A;
  color: #FFFFFF;
  border-color: #16A34A;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 10px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-line.active {
  background: var(--primary-orange);
}

/* Role Selector Pills */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.role-option {
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
}

.role-option:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
  transform: translateY(-1px);
}

.role-option.selected {
  border-color: var(--primary-orange);
  background: #FFF7ED;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.12);
}

.role-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.role-option.selected .role-icon {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #FFFFFF;
  transform: scale(1.05);
}

.role-info-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.role-info-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.25;
}

/* 2-Column Responsive Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Select Dropdown in input wrapper */
select.form-control-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ============================================================
   OTP VERIFICATION CARD & INPUTS
   ============================================================ */
.otp-wrapper {
  text-align: center;
  padding: 6px 0;
}

.otp-badge-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
  color: #EA580C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.18);
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28); }
}

.otp-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.otp-recipient-box {
  background: #F1F5F9;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 22px;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  line-height: 1.5;
  border: 1px solid #E2E8F0;
}

.otp-recipient-box strong {
  color: #0F172A;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.otp-digit {
  width: clamp(38px, 11vw, 54px);
  height: clamp(48px, 12vw, 62px);
  border: 2px solid #CBD5E1;
  border-radius: 14px;
  font-size: clamp(20px, 5.5vw, 28px);
  font-weight: 900;
  text-align: center;
  color: #0F172A;
  background: #F8FAFC;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Consolas', monospace;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.otp-digit:focus {
  border-color: var(--primary-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16);
  outline: none;
  transform: translateY(-2px);
}

.otp-digit.filled {
  border-color: #EA580C;
  background: #FFF7ED;
  color: #EA580C;
}

/* Simulation / Dev Mode Notice Card */
.otp-dev-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.otp-dev-left {
  display: flex;
  flex-direction: column;
}

.otp-dev-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #92400E;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.otp-dev-code {
  font-size: 22px;
  font-weight: 900;
  color: #B45309;
  font-family: 'Consolas', monospace;
  letter-spacing: 4px;
}

.btn-autofill-otp {
  padding: 8px 14px;
  background: #B45309;
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-autofill-otp:hover {
  background: #92400E;
  transform: translateY(-1px);
}

.otp-resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
  color: #64748B;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-text-action {
  background: none;
  border: none;
  color: var(--primary-orange);
  font-weight: 700;
  cursor: pointer;
  font-size: 12.5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-text-action:hover:not(:disabled) {
  color: #C2410C;
  background: rgba(234, 88, 12, 0.08);
}

.btn-text-action:disabled {
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Success Card */
.reg-success-card {
  text-align: center;
  padding: 10px 0;
}

.success-badge-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

.success-title {
  font-size: 24px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-info-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed #E2E8F0;
}

.success-info-row:last-child {
  border-bottom: none;
}

.success-info-label {
  color: #64748B;
}

.success-info-val {
  color: #0F172A;
  font-weight: 700;
}

/* Secondary / Back Buttons */
.btn-secondary-action {
  width: 100%;
  padding: 12px 20px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 10px;
  text-decoration: none;
}

.btn-secondary-action:hover {
  background: #E2E8F0;
  color: #1E293B;
}

/* Auth Divider & Links */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 22px 0 16px 0;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

.auth-divider span {
  padding: 0 14px;
}

.btn-register-link {
  width: 100%;
  padding: 12.5px 18px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-register-link:hover {
  background: #FFFFFF;
  border-color: var(--primary-orange);
  color: var(--primary-orange);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.1);
  transform: translateY(-1px);
}

.auth-footer-prompt {
  text-align: center;
  font-size: 13px;
  color: #64748B;
  margin-top: 20px;
}

.auth-text-link {
  color: var(--primary-orange);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s;
}

.auth-text-link:hover {
  color: #C2410C;
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   Optimized for iPad, Tablet, Android & iOS Screens
   ============================================================ */

/* TABLETS (Landscape & Portrait: 768px - 1024px) */
@media (max-width: 1024px) {
  .login-wrapper {
    flex-direction: column;
    min-height: 100vh;
  }

  .login-brand {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 32px 32px 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .brand-wave-divider {
    display: none;
  }

  .brand-header {
    margin-bottom: 20px;
  }

  .brand-hero-title {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .brand-institution {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .brand-desc {
    font-size: 13px;
    max-width: 600px;
  }

  .brand-features {
    display: none; /* Hide multi-column feature points to streamline mobile/tablet auth */
  }

  .brand-footer-tagline {
    display: none;
  }

  .top-tagline-container {
    display: none;
  }

  .dots-grid-decoration {
    display: none;
  }

  .login-form-panel {
    padding: 28px 24px 44px;
    align-items: flex-start;
  }

  .login-form-container {
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 28px;
    border-radius: 22px;
  }

  .register-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 28px;
    border-radius: 22px;
  }
}

/* MOBILE LANDSCAPE & SMALL TABLETS (481px - 767px) */
@media (max-width: 767px) {
  .login-brand {
    padding: 24px 20px 20px 20px;
  }

  .brand-header {
    gap: 10px;
    margin-bottom: 14px;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .brand-org {
    font-size: 13px;
  }

  .brand-dept {
    font-size: 10px;
  }

  .brand-hero-title {
    font-size: 24px;
  }

  .brand-institution {
    font-size: 14px;
  }

  .brand-desc {
    display: none; /* Keep header concise on mobile */
  }

  .login-form-panel {
    padding: 16px 14px 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .register-form-container,
  .login-form-container {
    padding: 24px 18px;
    border-radius: 20px;
    max-width: 100%;
  }

  .role-selector {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .otp-inputs {
    gap: 8px;
  }

  .otp-digit {
    width: 44px;
    height: 52px;
    font-size: 22px;
    border-radius: 10px;
  }

  .otp-dev-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-autofill-otp {
    width: 100%;
    justify-content: center;
  }

  .reg-step span {
    font-size: 11px;
  }
}

/* SMALL SMARTPHONES (<= 480px) */
@media (max-width: 480px) {
  body.login-body {
    background-color: #F8FAFC;
  }

  .login-brand {
    padding: 20px 16px 16px 16px;
  }

  .brand-hero-title {
    font-size: 22px;
  }

  .brand-institution {
    font-size: 13px;
  }

  .login-form-container,
  .register-form-container {
    padding: 20px 14px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  .card-title,
  .otp-title,
  .success-title {
    font-size: 20px;
  }

  .card-subtitle {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .card-logo-badge {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .card-logo-badge img {
    width: 30px;
    height: 30px;
  }

  /* Prevent iOS zoom by setting input font size to 16px on mobile */
  .form-control-input {
    font-size: 16px;
    padding: 12px 40px 12px 40px;
  }

  .otp-inputs {
    gap: 6px;
  }

  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
    border-radius: 8px;
  }

  .reg-step .step-label {
    display: none; /* Hide label text on tiny screens, show numbers */
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-line {
    margin: 0 6px;
  }

  .demo-account-row {
    padding: 7px 10px;
  }

  .demo-credentials {
    font-size: 11px;
  }

  .btn-submit-login,
  .btn-register-link,
  .btn-secondary-action {
    padding: 13px 16px;
    font-size: 14px;
  }
}

