:root{
  --teal: #2ec1ac;
  --teal_hover: #279e8c;
}

html{
  font-size: 90%; /* Scale entire website 10% smaller */
}

*{
  font-family: 'Poppins', sans-serif;
}
.h-font{
  font-family: 'Merienda', cursive;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.custom-bg{
  background-color: var(--teal);
  border: 1px solid var(--teal);
}
.custom-bg:hover{
  background-color: var(--teal_hover);
  border-color: var(--teal_hover);
}

.h-line{
  width: 150px;
  margin: 0 auto;
  height: 1.7px;
}

.custom-alert{
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 1111;
}

/* Modern Registration Form Styles */
.modern-register-modal .modal-dialog {
  background: #2ec1ac;
  border-radius: 0;
}

.modern-register-modal .modal-content {
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
}

.modern-register-modal form {
  border-radius: 0;
  overflow: visible;
}

.modern-register-header {
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
  border: none;
  padding: 2rem;
  color: white;
  border-radius: 0 !important;
  margin: 0;
}

.modern-register-header .btn-close-white {
  filter: brightness(0) invert(1);
}

.modern-register-header .modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modern-register-body {
  background: white;
  padding: 2rem;
  border-radius: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
}

.modern-form-group {
  margin-bottom: 1rem;
}

.modern-form-label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.modern-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.modern-form-control:focus {
  outline: none;
  border-color: #2ec1ac;
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 193, 172, 0.15);
  transform: translateY(-2px);
}

.modern-form-control::placeholder {
  color: #a0aec0;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
}

.password-input {
  padding-right: 3rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: #2ec1ac;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn i {
  transition: all 0.3s ease;
}

.password-toggle-btn.active {
  color: #2ec1ac;
}

/* Password Strength Bar */
.password-strength-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-fill.weak {
  width: 33%;
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.password-strength-fill.medium {
  width: 66%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.password-strength-fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.password-hint {
  display: block;
  margin-top: 0.25rem;
  color: #718096;
  font-size: 0.8rem;
}

/* Password Match Message */
.password-match-message {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.password-match-message.match {
  color: #10b981;
}

.password-match-message.match::before {
  content: "✓ ";
  font-weight: bold;
}

.password-match-message.no-match {
  color: #ef4444;
}

.password-match-message.no-match::before {
  content: "✗ ";
  font-weight: bold;
}

/* Modern Register Button */
.modern-register-btn {
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
  border: none;
  padding: 0.875rem 3rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 193, 172, 0.4);
  position: relative;
  overflow: hidden;
}

.modern-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 193, 172, 0.6);
  background: linear-gradient(135deg, #279e8c 0%, #2ec1ac 100%);
}

.modern-register-btn:active {
  transform: translateY(0);
}

.modern-register-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modern-register-btn .btn-text {
  position: relative;
  z-index: 1;
}

/* Animation for form inputs */
.modern-form-control:focus + .modern-form-label {
  color: #2ec1ac;
}

/* Enhanced Date Input (DOB) Styling */
.modern-form-control[type="date"] {
  position: relative;
  padding-right: 2.5rem;
  color: #4a5568;
  cursor: pointer;
}

.modern-form-control[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: invert(43%) sepia(78%) saturate(441%) hue-rotate(130deg) brightness(92%) contrast(89%);
}

.modern-form-control[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  filter: invert(57%) sepia(77%) saturate(438%) hue-rotate(130deg) brightness(91%) contrast(87%);
}

.modern-form-control[type="date"]:focus::-webkit-calendar-picker-indicator {
  filter: invert(57%) sepia(77%) saturate(438%) hue-rotate(130deg) brightness(91%) contrast(87%);
}

/* Date placeholder handling */
.modern-form-control[type="date"]:invalid {
  color: #a0aec0;
}

.modern-form-control[type="date"]:focus:invalid {
  color: #4a5568;
}

/* Custom calendar icon wrapper */
.date-input-wrapper {
  position: relative;
}

.date-input-wrapper::after {
  content: "\f073";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #2ec1ac;
  pointer-events: none;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-form-control[type="date"]:focus + .date-icon {
  color: #2ec1ac;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-register-header {
    padding: 1.5rem;
  }
  
  .modern-register-body {
    padding: 1.5rem;
  }
  
  .modern-register-header .modal-title {
    font-size: 1.25rem;
  }
}

/* Modern Login Form Styles */
.modern-login-modal .modal-dialog {
  background: #2ec1ac;
  border-radius: 0;
}

.modern-login-modal .modal-content {
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
}

.modern-login-modal form {
  border-radius: 0;
  overflow: visible;
}

.modern-login-header {
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
  border: none;
  padding: 2rem;
  color: white;
  border-radius: 0 !important;
  margin: 0;
}

.modern-login-header .modal-title {
  font-weight: 700;
  font-size: 1.5rem;
}

.modern-login-header .btn-close-white {
  filter: brightness(0) invert(1);
}

.modern-login-body {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
}

/* Modern Login Button */
.modern-login-btn {
  background: linear-gradient(135deg, #2ec1ac 0%, #1a9b88 100%);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 193, 172, 0.4);
  position: relative;
  overflow: hidden;
}

.modern-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 193, 172, 0.6);
  background: linear-gradient(135deg, #279e8c 0%, #2ec1ac 100%);
  color: white;
}

.modern-login-btn:active {
  transform: translateY(0);
}

.modern-login-btn .btn-text {
  position: relative;
  z-index: 1;
}

/* Remember Me Checkbox */
.modern-login-body .form-check {
  display: flex;
  align-items: center;
}

.modern-login-body .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 6px;
  border: 2px solid #cbd5e0;
  cursor: pointer;
  margin-top: 0;
  flex-shrink: 0;
}

.modern-login-body .form-check-input:checked {
  background-color: #2ec1ac;
  border-color: #2ec1ac;
}

.modern-login-body .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(46, 193, 172, 0.15);
  border-color: #2ec1ac;
  outline: none;
}

.modern-login-body .form-check-label {
  color: #4a5568;
  cursor: pointer;
  margin-left: 0.5rem;
  user-select: none;
}

.modern-login-body .btn-link {
  color: #2ec1ac;
  font-weight: 500;
}

.modern-login-body .btn-link:hover {
  color: #279e8c;
}

/* Responsive adjustments for login */
@media (max-width: 768px) {
  .modern-login-header {
    padding: 1.5rem;
  }
  
  .modern-login-body {
    padding: 2rem 1.5rem;
  }
  
  .modern-login-header .modal-title {
    font-size: 1.25rem;
  }
}
