/* ------------------------------------- */
/* STUDENT ACCESS AUTH AESTHETIC         */
/* ------------------------------------- */

:root {
  --rise-primary: #0284c7;
  --rise-primary-hover: #0369a1;
  --rise-success: #39A935;
  --rise-bg-main: #f1f5f9;
  --rise-card-bg: #ffffff;
  --rise-text-main: #0f172a;
  --rise-text-muted: #64748b;
  --rise-border: rgba(226, 232, 240, 0.8);
  --rise-input-border: #e2e8f0;
  --rise-error: #ef4444;
}

html, body {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--rise-bg-main);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background Animation */
.rise-animated-bg {
  position: fixed;
  top: -50%; left: -50%; right: -50%; bottom: -50%;
  width: 200vw; height: 200vh;
  background-image: radial-gradient(circle at center, #e2e8f0 2px, transparent 2px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 0;
  animation: slowPan 60s linear infinite;
  pointer-events: none;
}

@keyframes slowPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* Layout Wrappers */
.rise-auth-wrapper { 
  min-height: 100vh; min-height: 100dvh; 
  display: flex; align-items: center; justify-content: center; 
  padding: 24px; position: relative; z-index: 1; box-sizing: border-box; 
}

.rise-auth-card { 
  width: 100%; max-width: 950px; 
  background: var(--rise-card-bg); border-radius: 20px; 
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--rise-border); display: flex; overflow: hidden; 
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Visual & Form Panels */
.rise-auth-visual { 
  flex: 1.1; display: flex; align-items: center; justify-content: center; 
  padding: 40px; background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, rgba(57, 169, 53, 0.03) 100%);
  border-right: 1px solid var(--rise-border); 
}
.rise-auth-artwork { 
  width: 100%; max-width: 380px; object-fit: contain; 
  filter: drop-shadow(0 15px 25px rgba(2, 132, 199, 0.08)); transition: transform 0.5s ease;
}
.rise-auth-card:hover .rise-auth-artwork { transform: translateY(-5px); }
.rise-auth-panel { flex: 1; padding: 48px; display: flex; flex-direction: column; justify-content: center; background: #ffffff; }

/* Headers & Badges */
.rise-auth-header { margin-bottom: 24px; }
.rise-badge {
  background: #e0f2fe; color: var(--rise-primary);
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 12px;
}
.rise-auth-title-group h2 { margin: 0 0 6px 0; font-size: 28px; font-weight: 800; color: var(--rise-text-main); letter-spacing: -0.5px; }
.rise-text-gradient {
  background: linear-gradient(90deg, #0093D1 0%, #39A935 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.rise-auth-subtitle { margin: 0; font-size: 14px; color: var(--rise-text-muted); font-weight: 500; }

/* Alerts */
.rise-auth-alerts { margin-bottom: 24px; }
.rise-auth-notice { padding: 14px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 10px; display: flex; align-items: center; }
.rise-auth-notice.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rise-auth-notice.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Inputs */
.rise-auth-field { margin-bottom: 22px; display: flex; flex-direction: column; }
.rise-auth-input-wrapper { position: relative; width: 100%; display: flex; align-items: center; }
.rise-auth-icon { position: absolute; left: 16px; color: #94a3b8; font-size: 15px; transition: color 0.3s ease; }
.rise-auth-input { 
  width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; 
  border: 1px solid var(--rise-input-border); border-radius: 12px; 
  font-size: 14px; font-family: inherit; color: var(--rise-text-main); 
  background: #f8fafc; transition: all 0.2s ease; font-weight: 500;
}
.rise-auth-input::placeholder { color: #94a3b8; font-weight: 400; }
.rise-auth-input:focus { 
  background: #ffffff; border-color: var(--rise-primary); 
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1); outline: none; 
}
.rise-auth-input:focus + .rise-auth-icon, .rise-auth-input-wrapper:focus-within .rise-auth-icon { color: var(--rise-primary); }
.rise-auth-hint { font-size: 12px; color: var(--rise-text-muted); margin-top: 8px; margin-left: 4px; }
.rise-auth-input.rise-auth-invalid { border-color: var(--rise-error); background-color: #fef2f2; animation: shake 0.4s; }

/* Radio Card Selection */
.rise-radio-cards { display: flex; flex-direction: column; gap: 12px; }
.rise-radio-card {
  display: flex; align-items: center; padding: 14px 16px;
  border: 1.5px solid var(--rise-input-border); border-radius: 12px;
  background: #f8fafc; cursor: pointer; transition: all 0.2s ease;
}
.rise-radio-card input[type="radio"] { display: none; }
.rise-radio-card:hover { border-color: #94a3b8; background: #ffffff; }
.rise-radio-card.active {
  border-color: var(--rise-primary); background: #f0f9ff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.08);
}
.card-content { display: flex; align-items: center; gap: 14px; width: 100%; }
.whatsapp-icon { font-size: 22px; color: #25D366; }
.dob-icon { font-size: 20px; color: var(--rise-primary); }
.card-title { font-size: 14px; font-weight: 700; color: var(--rise-text-main); display: block; }
.card-desc { font-size: 12px; color: var(--rise-text-muted); display: block; margin-top: 2px; }

/* OTP Styling */
.otp-highlight .rise-auth-input { 
  border-color: #bae6fd; box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.05); 
  font-weight: 700; letter-spacing: 6px; text-align: center;
  font-size: 20px; padding: 14px 16px; background: #ffffff;
}

.rise-auth-user-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #f1f5f9; padding: 8px 16px; border-radius: 20px; margin-bottom: 24px;
  font-size: 13px; font-weight: 600; color: var(--rise-text-main); border: 1px solid var(--rise-border);
}
.rise-auth-user-badge i { color: var(--rise-primary); font-size: 16px; }

/* DOB No-Typing Field */
input[type="date"].no-typing { cursor: pointer; caret-color: transparent; }
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Resend Timer & Buttons */
.rise-auth-resend-wrapper { margin-bottom: 24px; font-size: 13px; text-align: center; }
.rise-auth-text-btn { background: none; border: none; padding: 0; margin: 0; font-size: 13px; font-weight: 700; color: var(--rise-primary); cursor: pointer; transition: color 0.2s; }
.rise-auth-text-btn:hover { color: var(--rise-primary-hover); text-decoration: underline; }

/* Submit Button */
.rise-auth-submit-wrapper { margin-top: 10px; }
.rise-auth-btn-primary { 
  width: 100%; background: var(--rise-primary); color: #ffffff; 
  border: none; border-radius: 12px; padding: 14px; font-size: 15px; 
  font-weight: 700; cursor: pointer; transition: all 0.3s ease; 
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25); 
}
.rise-auth-btn-primary:hover { background: var(--rise-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35); }
.rise-auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Footer */
.rise-auth-footer { text-align: center; margin-top: 24px; }
.rise-auth-footer p { margin: 0; font-size: 13px; color: var(--rise-text-muted); }
.rise-auth-back-link {
  color: var(--rise-text-muted); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s ease; display: inline-block;
  padding: 8px 16px; border-radius: 8px; background: #f8fafc;
}
.rise-auth-back-link:hover { color: var(--rise-primary); background: #f1f5f9; }

/* Server Timer */
.rise-server-timer {
  position: absolute; top: 24px; right: 24px; background: var(--rise-card-bg);
  padding: 10px 18px; border-radius: 50px; font-size: 14px; font-weight: 700;
  color: var(--rise-text-main); box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--rise-border); z-index: 10; display: flex; align-items: center; gap: 8px;
}
.rise-server-timer i { color: var(--rise-primary); font-size: 16px; }

/* Animations & Responsive */
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-4px);} 75% {transform: translateX(4px);} }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 850px) {
  .rise-auth-wrapper { padding: 16px; align-items: center; }
  .rise-auth-card { flex-direction: column; border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); max-width: 440px; width: 100%; margin: auto; }
  .rise-auth-visual { display: none; }
  .rise-auth-panel { padding: 36px 24px; }
  .rise-auth-title-group h2 { font-size: 24px; }
  .rise-server-timer { top: 12px; right: 12px; font-size: 12px; padding: 8px 14px; }
}
@media (max-width: 480px) { .rise-auth-panel { padding: 28px 18px; } }