/**
 * Authentication Pages Styles for Mr Mohrr7am
 */

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* add top padding so card not hidden under fixed navbar */
  padding: 110px 0 50px;
  /* navbar ~70px + spacing */
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

/* Auth Background - Light/Dark Theme Support */
.light-theme .math-auth-bg {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dark-theme .math-auth-bg {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* Fallback for when theme class is not applied */
.math-auth-bg {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.auth-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.auth-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Auth Card */
.auth-card {
  width: 100%;
  max-width: 800px;
  /* Increased from 500px for wider form */
  border-radius: 25px;
  /* Slightly more rounded corners */
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: none;
  position: relative;
  z-index: 1050;
  /* Higher than navbar z-index: 1000 */
  transition: all 0.4s ease;
  transform: translateY(0);
  margin-bottom: 30px;
}

/* Theme-based card styling */
.light-theme .auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dark-theme .auth-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.auth-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.card-body {
  padding: 50px 60px !important;
  /* Increased padding for more cozy feel */
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.auth-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(58, 146, 98, 0.3);
}

.auth-icon-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.math-icon-animated {
  font-size: 2.5rem;
  color: #fff;
  position: relative;
  z-index: 1;
  animation: pulse 2s infinite alternate;
}

/* Light theme header styling */
.light-theme .auth-header h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.light-theme .auth-header p {
  color: rgba(33, 37, 41, 0.7) !important;
  font-size: 1.1rem;
}

/* Dark theme header styling */
.dark-theme .auth-header h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.dark-theme .auth-header p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.1rem;
}

/* Auth Form */
.auth-form {
  margin-bottom: 25px;
}

/* Light theme form styling */
.light-theme .form-label {
  color: rgba(33, 37, 41, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.light-theme .form-control {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.light-theme .form-control:focus {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 114, 255, 0.5);
  color: #333;
  box-shadow: 0 0 0 0.25rem rgba(0, 114, 255, 0.15);
}

.light-theme .form-control::placeholder {
  color: rgba(33, 37, 41, 0.5);
}

/* Dark theme form styling */
.dark-theme .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.dark-theme .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.dark-theme .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 198, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(0, 198, 255, 0.25);
}

.dark-theme .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Light theme input group */
.light-theme .input-group-text {
  background-color: rgba(0, 114, 255, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 10px 0 0 10px;
}

.light-theme .btn-outline-secondary {
  border-color: rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 0 10px 10px 0;
  background-color: rgba(0, 114, 255, 0.1);
}

.light-theme .btn-outline-secondary:hover {
  background-color: rgba(0, 114, 255, 0.2);
  border-color: rgba(0, 0, 0, 0.2);
  color: #333;
}

/* Dark theme input group */
.dark-theme .input-group-text {
  background-color: rgba(0, 114, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 10px 0 0 10px;
}

.dark-theme .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 0 10px 10px 0;
  background-color: rgba(0, 114, 255, 0.2);
}

.dark-theme .btn-outline-secondary:hover {
  background-color: rgba(0, 114, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Input group focus effect */
.input-focused .input-group-text {
  border-color: rgba(0, 198, 255, 0.5);
  transition: all 0.3s ease;
}

.form-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Light theme checkboxes */
.light-theme .form-check-label {
  color: rgba(33, 37, 41, 0.8);
  font-size: 0.95rem;
}

.light-theme .form-check-input {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.2);
}

.light-theme .form-check-input:checked {
  background-color: #0072ff;
  border-color: #0072ff;
}

/* Dark theme checkboxes */
.dark-theme .form-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.dark-theme .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.dark-theme .form-check-input:checked {
  background-color: #00c6ff;
  border-color: #00c6ff;
}

/* Improved checkbox visual effect */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
  transition: all 0.2s ease;
}

.form-check-input:checked {
  transform: scale(1.05);
}

.form-check-label a {
  color: #00c6ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.form-check-label a:hover {
  color: #0072ff;
  text-decoration: underline;
}

.float-end {
  color: #00c6ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.float-end:hover {
  color: #0072ff;
  text-decoration: underline;
}

.invalid-feedback {
  color: #ff6b6b;
  font-size: 0.85rem;
}

/* Auth Buttons */
.auth-card .btn-primary {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 15px rgba(0, 114, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-card .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(0, 114, 255, 0.4);
  background: linear-gradient(90deg, #0072ff, #00c6ff);
}

.auth-card .btn-primary:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: all 0.6s;
}

.auth-card .btn-primary:hover:before {
  left: 100%;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 15px 25px;
}

/* Auth Separator */
.auth-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-separator-text {
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Social Login Buttons */
/* Light theme social buttons */
.light-theme .auth-card .btn-outline-primary {
  border: 1px solid rgba(0, 114, 255, 0.3);
  color: #0072ff;
  background-color: rgba(0, 114, 255, 0.05);
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.light-theme .auth-card .btn-outline-primary:hover {
  background-color: rgba(0, 114, 255, 0.1);
  border-color: rgba(0, 114, 255, 0.5);
  color: #0056b3;
  transform: translateY(-3px);
}

/* Dark theme social buttons */
.dark-theme .auth-card .btn-outline-primary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.dark-theme .auth-card .btn-outline-primary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-3px);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding: 15px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme footer styling */
.light-theme .auth-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .auth-footer p {
  color: rgba(33, 37, 41, 0.7);
  font-size: 0.95rem;
}

.light-theme .auth-footer a {
  color: #0072ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.light-theme .auth-footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Dark theme footer styling */
.dark-theme .auth-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.dark-theme .auth-footer a {
  color: #00c6ff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dark-theme .auth-footer a:hover {
  color: #0072ff;
  text-decoration: underline;
}

/* Floating Math Shapes */
.math-shape-auth {
  position: absolute;
  opacity: 0.1;
  z-index: 0;
}

.auth-shape1 {
  top: 10%;
  left: 5%;
  width: 150px;
  height: 150px;
  background: #00c6ff;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: float-shape-slow 15s infinite alternate ease-in-out;
}

.auth-shape2 {
  bottom: 10%;
  right: 5%;
  width: 120px;
  height: 120px;
  background: #0072ff;
  border-radius: 64% 36% 27% 73% / 55% 58% 42% 45%;
  animation: float-shape-slow 12s infinite alternate-reverse ease-in-out;
}

.auth-shape3 {
  top: 50%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: #00c6ff;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: float-shape-slow 10s infinite alternate ease-in-out;
}

.auth-shape4 {
  bottom: 30%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: #0072ff;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: float-shape-slow 13s infinite alternate-reverse ease-in-out;
}

/* Responsive Styles */
@media (max-width: 576px) {
  .auth-card {
    margin: 0 15px 30px;
  }

  .card-body {
    padding: 30px !important;
  }

  .auth-header h2 {
    font-size: 1.8rem;
  }
}

/* Additional safe area top spacing for very small heights */
@media (max-height: 650px) {
  .auth-container {
    padding-top: 90px;
  }
}

/* Bottom margin and footer fixes */
.auth-container .container {
  padding-bottom: 30px;
}

/* Fix for EJS footer */
.auth-container+footer,
.auth-container~footer {
  margin-top: 0;
  background: transparent;
}

/* Enhanced Registration Form Styles */
.auth-form .row {
  margin-bottom: 1rem;
}

.auth-form .col-md-6 .mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Form info box for student code explanation */
.form-info-box {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(135deg,
      rgba(0, 114, 255, 0.1),
      rgba(0, 198, 255, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(0, 114, 255, 0.2);
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.light-theme .form-info-box {
  background: linear-gradient(135deg,
      rgba(0, 114, 255, 0.08),
      rgba(0, 198, 255, 0.08));
  border-color: rgba(0, 114, 255, 0.15);
}

.dark-theme .form-info-box {
  background: linear-gradient(135deg,
      rgba(0, 114, 255, 0.15),
      rgba(0, 198, 255, 0.15));
  border-color: rgba(0, 114, 255, 0.3);
}

.form-info-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-info-box i {
  font-size: 1.5rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.form-info-box div {
  flex: 1;
}

.form-info-box strong {
  color: #0072ff;
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
}

.light-theme .form-info-box strong {
  color: #0056b3;
}

.dark-theme .form-info-box strong {
  color: #4dabf7;
}

.form-info-box p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.light-theme .form-info-box p {
  color: #6c757d;
}

.dark-theme .form-info-box p {
  color: #adb5bd;
}

/* Form field styling for wider layout */
.auth-form .form-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.light-theme .auth-form .form-label {
  color: #333;
}

.dark-theme .auth-form .form-label {
  color: #fff;
}

/* Enhanced input group styling */
.auth-form .input-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.auth-form .input-group:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.2);
  transform: translateY(-1px);
}

/* Enhanced select styling */
.auth-form .form-select {
  background-size: 16px 12px;
  background-position: right 12px center;
  padding-right: 40px;
}

/* Better spacing for password fields in register form */
.auth-form .row:last-of-type .col-md-6:first-child {
  padding-right: 15px;
}

.auth-form .row:last-of-type .col-md-6:last-child {
  padding-left: 15px;
}

/* Enhanced button styling */
.auth-form .btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.auth-form .btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 114, 255, 0.3);
}

/* Alert enhancements */
.alert {
  border-radius: 12px;
  border: none;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66, #40c057);
  color: white;
}

.alert ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.alert li {
  margin-bottom: 0.5rem;
}

.alert li:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments for wider card */
@media (max-width: 992px) {
  .auth-card {
    max-width: 700px;
  }

  .card-body {
    padding: 40px 50px !important;
  }
}

@media (max-width: 768px) {
  .auth-card {
    max-width: 95%;
    margin: 0 2.5%;
  }

  .card-body {
    padding: 30px 25px !important;
  }

  .auth-form .row:last-of-type .col-md-6:first-child,
  .auth-form .row:last-of-type .col-md-6:last-child {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 576px) {
  .auth-card {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .card-body {
    padding: 25px 20px !important;
  }
}

/* Floating Flash Messages */
.floating-flash-message {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.floating-flash-message .alert {
  margin-bottom: 0;
  border: none;
  border-radius: 12px;
  position: relative;
}

.light-theme .floating-flash-message .alert-warning {
  background: rgba(255, 193, 7, 0.9);
  color: #664d03;
  border-left: 4px solid #ffc107;
}

.dark-theme .floating-flash-message .alert-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-left: 4px solid #ffc107;
}

.light-theme .floating-flash-message .alert-success {
  background: rgba(25, 135, 84, 0.9);
  color: #0a3622;
  border-left: 4px solid #198754;
}

.dark-theme .floating-flash-message .alert-success {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
  border-left: 4px solid #198754;
}

/* Slide in animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Auto-hide animation */
.floating-flash-message {
  animation: slideInLeft 0.5s ease-out, fadeOut 0.5s ease-in 4s forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* Responsive adjustments for floating messages */
@media (max-width: 768px) {
  .floating-flash-message {
    left: 10px !important;
    right: 10px !important;
    max-width: calc(100% - 20px) !important;
  }
}

/* ============================= */
/* Elkably Auth – Modern Split Layout */
/* Professional redesign matching index theme */
/* ============================= */

/* Use Elkably reds for primary effects */
:root {
  --elkably-primary: #B80101;
  --elkably-primary-transparent: #B80101D4;
  --elkably-primary-fade: #B8010100;
  --elkably-secondary: #ff6b6b;
  --elkably-accent: #ff8a80;
}

/* ============================= */
/* Modern Split-Screen Layout */
/* ============================= */

.auth-container-modern {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Add padding to move content below header */
}

/* Left Side - Visual Section */
.auth-visual-section {
  flex: 1;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, var(--elkably-secondary) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 500px;
  padding: 0 40px;
}

.auth-logo-container {
  margin-bottom: 60px;
}

.auth-logo-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: logoFloat 6s ease-in-out infinite;
}

.auth-logo-icon i {
  font-size: 3rem;
  color: white;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.auth-brand-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.auth-brand-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.auth-feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

.auth-feature-item i {
  font-size: 1.5rem;
  color: white;
  width: 30px;
  text-align: center;
}

.auth-feature-item span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Right Side - Form Section */
.auth-form-section {
  flex: 1;
  background: var(--bg-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.auth-form-container {
  width: 100%;
  max-width: 500px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-form-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color, #333);
  margin-bottom: 10px;
}

.auth-form-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted, #666);
  margin-bottom: 30px;
}

/* Registration Steps */
.registration-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step-item.active {
  opacity: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--elkably-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.step-item.active .step-number {
  background: var(--elkably-primary);
  box-shadow: 0 4px 12px rgba(184, 1, 1, 0.3);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted, #666);
}

/* ============================= */
/* Modern Form Components */
/* ============================= */

.form-step {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 30px;
  text-align: center;
}

.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group-modern {
  position: relative;
  margin-bottom: 25px;
}

.form-label-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-label-icon {
  color: var(--elkably-primary);
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.input-group-modern {
  position: relative;
}

.form-control-modern {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--input-bg, #ffffff);
  color: var(--text-color, #333);
  transition: all 0.3s ease;
  outline: none;
}

.form-control-modern:focus {
  border-color: var(--elkably-primary);
  box-shadow: 0 0 0 3px rgba(184, 1, 1, 0.1);
  transform: translateY(-2px);
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--elkably-primary), var(--elkably-secondary));
  border-radius: 0 0 12px 12px;
  transition: width 0.3s ease;
}

.form-control-modern:focus+.input-focus-line {
  width: 100%;
}

.form-text-modern {
  font-size: 0.85rem;
  color: var(--text-muted, #666);
  margin-top: 5px;
}

.invalid-feedback-modern {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-control-modern.is-invalid+.input-focus-line+.invalid-feedback-modern {
  display: block;
}

/* Password Toggle Button */
.btn-toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted, #666);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-toggle-password:hover {
  color: var(--elkably-primary);
  background: rgba(184, 1, 1, 0.1);
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
}

.form-check-modern {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check-input-modern {
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  background: var(--input-bg, #ffffff);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input-modern:checked {
  background: var(--elkably-primary);
  border-color: var(--elkably-primary);
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  background: var(--input-bg, #ffffff);
  transition: all 0.3s ease;
}

.form-check-input-modern:checked+.checkmark {
  background: var(--elkably-primary);
  border-color: var(--elkably-primary);
}

.checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-check-input-modern:checked+.checkmark::after {
  opacity: 1;
}

.form-check-label-modern {
  font-size: 0.95rem;
  color: var(--text-color, #333);
  cursor: pointer;
}

.terms-link {
  color: var(--elkably-primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
}

.forgot-password-link {
  color: var(--elkably-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.forgot-password-link:hover {
  text-decoration: underline;
}

/* ============================= */
/* Modern Buttons */
/* ============================= */

.btn-auth-primary {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, var(--elkably-primary) 0%, var(--elkably-secondary) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 1, 1, 0.3);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.btn-auth-primary:hover .btn-icon {
  transform: translateX(5px);
}

.btn-ripple {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-auth-primary:hover .btn-ripple {
  left: 100%;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.btn-nav {
  padding: 12px 24px;
  border: 2px solid var(--elkably-primary);
  background: transparent;
  color: var(--elkably-primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav:hover {
  background: var(--elkably-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-nav-prev {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-nav-prev:hover {
  background: #6c757d;
  border-color: #6c757d;
}

/* ============================= */
/* Modern Links */
/* ============================= */

.auth-link-modern {
  color: var(--elkably-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.auth-link-modern:hover {
  color: var(--elkably-secondary);
  transform: translateX(5px);
}

.auth-link-modern i {
  transition: transform 0.3s ease;
}

.auth-link-modern:hover i {
  transform: translateX(3px);
}

/* ============================= */
/* Alerts */
/* ============================= */

.auth-alert {
  border-radius: 12px;
  border: none;
  margin-bottom: 25px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================= */
/* Footer */
/* ============================= */

.auth-form-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e1e5e9;
}

.auth-form-footer p {
  color: var(--text-muted, #666);
  font-size: 0.95rem;
}

/* ============================= */
/* Dark Theme Support */
/* ============================= */

.dark-theme .auth-form-section {
  background: #1a1a1a;
}

.dark-theme .auth-form-title,
.dark-theme .step-title {
  color: #ffffff;
}

.dark-theme .auth-form-subtitle,
.dark-theme .step-label {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .form-label-modern {
  color: #ffffff;
}

.dark-theme .form-control-modern {
  background: #2d2d2d;
  border-color: #444;
  color: #ffffff;
}

.dark-theme .form-control-modern:focus {
  background: #333;
  border-color: var(--elkably-primary);
}

.dark-theme .form-text-modern {
  color: rgba(255, 255, 255, 0.6);
}

.dark-theme .form-check-label-modern {
  color: #ffffff;
}

.dark-theme .auth-form-footer {
  border-top-color: #444;
}

.dark-theme .auth-form-footer p {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================= */
/* Responsive Design */
/* ============================= */

@media (max-width: 768px) {
  .auth-container-modern {
    flex-direction: column;
  }

  .auth-visual-section {
    min-height: 40vh;
    padding: 40px 20px;
  }

  .auth-brand-title {
    font-size: 2.5rem;
  }

  .auth-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }

  .auth-feature-item {
    flex: 1;
    min-width: 150px;
  }

  .auth-form-section {
    padding: 40px 20px;
  }

  .form-row-modern {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .registration-steps {
    flex-direction: column;
    gap: 15px;
  }

  .step-item {
    flex-direction: row;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .auth-brand-title {
    font-size: 2rem;
  }

  .auth-form-title {
    font-size: 2rem;
  }

  .auth-logo-icon {
    width: 80px;
    height: 80px;
  }

  .auth-logo-icon i {
    font-size: 2rem;
  }
}

/* Card subtle animated border glow */
.auth-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  padding: 1px;
  background: linear-gradient(135deg, var(--elkably-primary), rgba(184, 1, 1, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.auth-card:hover::after {
  opacity: 0.6;
}

/* Inputs – glowing focus ring using Elkably red */
.auth-form .input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(184, 1, 1, 0.15), 0 10px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.input-focused .input-group-text {
  background: rgba(184, 1, 1, 0.12);
  border-color: rgba(184, 1, 1, 0.35);
  color: var(--elkably-primary);
}

/* Form control focus states (override earlier blue scheme) */
.light-theme .form-control:focus {
  border-color: rgba(184, 1, 1, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(184, 1, 1, 0.18);
}

.dark-theme .form-control:focus {
  border-color: rgba(184, 1, 1, 0.6);
  box-shadow: 0 0 0 0.25rem rgba(184, 1, 1, 0.25);
}

/* Animated label accent when field focused */
.auth-form .mb-4 .form-label,
.auth-form .col-md-6 .form-label {
  position: relative;
  transition: color 0.3s ease;
}

.auth-form .mb-4:focus-within .form-label,
.auth-form .col-md-6:focus-within .form-label {
  color: var(--elkably-primary);
}

.auth-form .mb-4 .form-label::after,
.auth-form .col-md-6 .form-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--elkably-primary), var(--elkably-primary-transparent));
  transition: width 0.35s ease;
}

.auth-form .mb-4:focus-within .form-label::after,
.auth-form .col-md-6:focus-within .form-label::after {
  width: 46px;
}

/* Valid/invalid smooth feedback and micro-animations */
.form-control.is-valid {
  border-color: rgba(76, 175, 80, 0.6) !important;
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15) !important;
  transition: all 0.25s ease;
}

.form-control.is-invalid {
  border-color: rgba(220, 53, 69, 0.8) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15) !important;
  animation: elkably-shake 180ms ease-in-out 0s 2;
}

@keyframes elkably-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  75% {
    transform: translateX(2px);
  }
}

/* Buttons – switch to Elkably gradient */
.auth-card .btn-primary {
  background: linear-gradient(135deg, var(--elkably-primary) 0%, #ff6b6b 100%);
  box-shadow: 0 8px 18px rgba(184, 1, 1, 0.35);
}

.auth-card .btn-primary:hover {
  box-shadow: 0 12px 28px rgba(184, 1, 1, 0.45);
}

.auth-card .btn-primary:before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Subtle 3D tilt responsiveness – style side glow helpers */
.auth-card[data-tilt-active="true"] {
  will-change: transform;
  transition: transform 120ms ease, box-shadow 200ms ease;
}

.auth-card[data-tilt-active="true"] .glow-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 25px;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(184, 1, 1, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 120ms ease;
}

.auth-card[data-tilt-active="true"]:hover .glow-edge {
  opacity: 1;
}

/* Auth header icon tint to Elkably gradient */
.auth-icon-container {
  background: linear-gradient(135deg, var(--elkably-primary), #ff6b6b);
  box-shadow: 0 10px 20px rgba(184, 1, 1, 0.25);
}

/* Animated link pulse (reused by auth-animations.js) */
.animated-link.pulse {
  animation: linkPulse 480ms ease;
}

@keyframes linkPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}