/* ==========================================================================
   Afiidah Academy — Auth Pages Theme (Rocket LMS 2.2)
   Brand Identity: Sand, Deep Ink, Sage, Ash & Muted Gold
   ========================================================================== */

:root {
  --c-sand: #E9E4DC;
  --c-sand-deep: #DED7CC;
  --c-sage: #8BA794;
  --c-sage-dark: #6B8674;
  --c-ash: #BAC6B8;
  --c-ink: #2F3456;
  --c-ink-soft: #454B77;
  --c-slate: #5D6E75;
  --c-slate-light: #7C8B91;
  --c-gold: #C9A961;
}

/* Page wrapper with Islamic geometric ambient pattern */
.afiidah-auth-wrapper {
  background-color: var(--c-sand);
  min-height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
}

.afiidah-auth-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232F3456' stroke-width='0.75' stroke-opacity='0.08'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20l40 0 0 40-40 0z'/%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 10l10 10-10 10-10-10zM40 50l10 10-10 10-10-10zM10 40l10 10-10 10-10-10zM50 40l10 10-10 10-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

.afiidah-auth-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 167, 148, 0.25) 0%, rgba(233, 228, 220, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* Return Home Button */
.auth-return-home-btn {
  color: var(--c-ink);
  transition: all 0.25s ease;
}
.auth-return-home-btn:hover {
  color: var(--c-sage-dark);
}
.auth-back-arrow {
  background-color: rgba(47, 52, 86, 0.06);
  color: var(--c-ink);
  transition: all 0.25s ease;
}
.auth-return-home-btn:hover .auth-back-arrow {
  background-color: var(--c-sage);
  color: #FFFFFF;
  transform: translateX(3px);
}
.rtl .auth-return-home-btn:hover .auth-back-arrow {
  transform: translateX(-3px);
}

/* Main Card */
.afiidah-auth-card {
  border-radius: 28px !important;
  border: 1px solid rgba(47, 52, 86, 0.08);
  box-shadow: 0 20px 50px -10px rgba(47, 52, 86, 0.12),
              0 6px 18px rgba(47, 52, 86, 0.04);
}

.auth-welcome-pill {
  background-color: rgba(139, 167, 148, 0.14);
  border: 1px solid rgba(139, 167, 148, 0.25);
}

.font-tajawal {
  font-family: 'Tajawal', 'Cairo', sans-serif !important;
}

.font-cairo {
  font-family: 'Cairo', system-ui, sans-serif !important;
}

.text-ink {
  color: var(--c-ink) !important;
}
.text-slate {
  color: var(--c-slate) !important;
}
.text-slate-light {
  color: var(--c-slate-light) !important;
}
.text-sage {
  color: var(--c-sage) !important;
}
.text-ash {
  color: var(--c-ash) !important;
}
.text-gold {
  color: var(--c-gold) !important;
}
.text-sand-deep {
  color: var(--c-sand-deep) !important;
}
.bg-sand-deep-20 {
  background-color: rgba(222, 215, 204, 0.35) !important;
}
.border-sand-deep {
  border: 1px solid var(--c-sand-deep) !important;
}

/* Input Fields */
.form-group-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.auth-input,
.auth-page-card .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--c-sand-deep);
  background-color: #FAF9F6;
  color: var(--c-ink);
  font-size: 14px;
  padding: 10px 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input:focus,
.auth-page-card .form-control:focus {
  border-color: var(--c-sage);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(139, 167, 148, 0.18);
  outline: none;
}

/* Password Eye Visibility */
.auth-page-card .password-input-visibility {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 4;
}
.rtl .auth-page-card .password-input-visibility {
  right: auto;
  left: 14px;
}

/* Submit Button */
.auth-submit-btn,
.auth-page-card .btn-primary {
  height: 50px;
  border-radius: 12px;
  background-color: var(--c-sage) !important;
  border-color: var(--c-sage) !important;
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -4px rgba(139, 167, 148, 0.4);
  transition: all 0.25s ease;
}

.auth-submit-btn:hover,
.auth-page-card .btn-primary:hover {
  background-color: var(--c-sage-dark) !important;
  border-color: var(--c-sage-dark) !important;
  box-shadow: 0 12px 28px -4px rgba(107, 134, 116, 0.5);
  transform: translateY(-1px);
}

/* Method Selector / Role Selector Tabs */
.auth-role-tabs {
  background-color: rgba(222, 215, 204, 0.3);
}
.auth-page-card .auth-register-method-item label {
  min-height: 40px;
  border-radius: 10px;
  color: var(--c-slate);
  background-color: transparent;
  transition: all 0.2s ease;
  margin-bottom: 0;
}
.auth-page-card .auth-register-method-item label:hover {
  color: var(--c-ink);
  background-color: rgba(255, 255, 255, 0.7);
}
.auth-page-card .auth-register-method-item input {
  position: absolute;
  opacity: 0;
  visibility: hidden;
}
.auth-page-card .auth-register-method-item input:checked ~ label {
  color: #FFFFFF;
  background-color: var(--c-ink);
  box-shadow: 0 4px 12px rgba(47, 52, 86, 0.15);
}

/* Social Buttons */
.auth-social-btn {
  border: 1.5px solid var(--c-sand-deep);
  background-color: #FFFFFF;
  transition: all 0.2s ease;
}
.auth-social-btn:hover {
  border-color: var(--c-ash);
  background-color: #FBF9F5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 52, 86, 0.06);
}

/* Verification Code Boxes */
.auth-verification-code-field {
  width: 58px;
  height: 64px;
  border-radius: 14px;
  border: 1.5px solid var(--c-sand-deep);
  background-color: #FAF9F6;
  color: var(--c-ink);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}
.auth-verification-code-field:focus {
  border-color: var(--c-sage);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(139, 167, 148, 0.2);
  outline: none;
}
@media (max-width: 576px) {
  .auth-verification-code-field {
    width: 46px;
    height: 52px;
    font-size: 20px;
  }
}

/* Institutional Slider Card Showcase */
.auth-slider-container {
  min-height: 560px;
  height: 100%;
  background: linear-gradient(155deg, #1E233D 0%, #2F3456 60%, #3F476F 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.2);
}

.auth-slider-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A961' stroke-width='0.8'%3E%3Cpath d='M35 0l35 35-35 35L0 35z'/%3E%3Cpath d='M0 0h70v70H0z'/%3E%3Ccircle cx='35' cy='35' r='14'/%3E%3Ccircle cx='35' cy='35' r='24' stroke-dasharray='2,2'/%3E%3C/g%3E%3C/svg%3E");
}

.auth-slider-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}

.auth-brand-badge {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.auth-quote-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.auth-quote-icon {
  font-size: 28px;
  line-height: 1;
}

.auth-features-list .auth-feature-dot {
  background-color: rgba(139, 167, 148, 0.2);
  border: 1px solid rgba(139, 167, 148, 0.4);
}

.badge-gold-soft {
  background-color: rgba(201, 169, 97, 0.2);
  color: var(--c-gold);
  border: 1px solid rgba(201, 169, 97, 0.4);
}

.border-top-white-10 {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.border-top-gray-100 {
  border-top: 1px solid var(--c-sand-deep);
}

.hover-underline:hover {
  text-decoration: underline !important;
}

.auth-divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--c-sand-deep);
}

.auth-page-form-container {
  max-height: 480px;
}


/* ==========================================================================
   Auth Language Switcher Segmented Control
   ========================================================================== */
.auth-lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--c-sand-deep);
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(47, 52, 86, 0.05);
}

.auth-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-slate);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.auth-lang-btn:hover {
  color: var(--c-ink);
  background-color: rgba(233, 228, 220, 0.6);
}

.auth-lang-btn.active {
  color: #FFFFFF !important;
  background-color: var(--c-ink);
  box-shadow: 0 2px 6px rgba(47, 52, 86, 0.25);
}
