
.login-container-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);

}

.partner-logo {
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
 animation: fadeInDown 0.6s ease-out;


}

.input-group .mui-textfield {
  display: flex;
  flex: 1 1 auto;
}

.input-group .mui-textfield input.form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-group .input-group-text {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1.5px solid #bdbdbd;
  background: #fff;
}

.input-group .mui-textfield input.form-control:focus {
  border-right: none;
  box-shadow: none;
}

#dateofbirth:focus {
  outline: none;
  box-shadow: none;
}

.mui-textfield input.form-control {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.75rem;
  border: 1px solid var(--secondary-input);
  border-radius: 4px;
  outline: none;
  font-size: 1rem;
  background: none;
  transition: border-color 0.2s;
  height: 48px;
  box-sizing: border-box;
  line-height: 1.5;
  display: block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mui-textfield input.form-control:hover{
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}


.mui-textfield input.form-control::placeholder {
  color: var(--secondary-input) !important;
  opacity: 1;
}


.mui-textfield label {
  position: absolute;
  left: 0.65rem;
  top: 14px;
  color: #757575;
  background: white;
  padding: 0 0.25rem;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.2s cubic-bezier(.4, 0, .2, 1);
  line-height: 1.2;
  z-index: 2;
}

.mui-textfield input.form-control:focus {
  border-color: var(--primary-brand);
  box-shadow: 0 4px 16px rgba(94, 75, 159, 0.2);
  transform: translateY(-2px);
}

.mui-textfield input.form-control:focus+label,
.mui-textfield input.form-control:not(:placeholder-shown):not([value=""])+label {
  top: -0.6rem;
  left: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-brand);
  background: white;
  line-height: 1.2;
  font-weight: 500;
}

.mui-textfield input.form-control:focus::placeholder {
  color: transparent;
}

.mui-textfield .calendar-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0 0.5rem;
  /* color: #1976d2; */
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.mui-textfield .calendar-icon:hover{
   transform: translateY(-50%) scale(1.2);
  color: var(--secondary-brand);
}

.form-control:focus{
  border-color: var(--primary-brand) !important;
}

.mui-textfield .calendar-icon i {
  display: block !important;
  font-size: 1.25rem;
  color: var(--primary-brand);
}
.mui-textfield {
  position: relative;
  margin-bottom: 12px;
}

.flatpickr-input[readonly] {
  background-image: none !important;
}
.flatpickr-input {
  background: none !important;
  margin-bottom: 0.5rem;
}
.flatpickr-day.today, .flatpickr-day.selected{
  color: #ffffff;
  border-color:var(--primary-brand) !important;
  background-color: var(--primary-brand) !important;
}
.flatpickr-day.today.flatpickr-disabled{
  color: #ffffff !important;
}


.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 15px;
  padding-top: 15px;
}

.logo-section {
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
  max-width: 560px;
  animation: fadeInUp 0.7s ease-out 0.1s both;

  p {
    font-size: var(--font-size-sm);
    line-height: 1.3;
    margin: 5px 0;
  }
}

.logo-section h4 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 10px;
}

.logo-section h5 {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.login-container {
  width: 100%;
  max-width: 560px;
    animation: fadeInUp 0.7s ease-out 0.2s both;

}

.login-wrapper {
  /* background: var(--bg-primary);
  text-align: center;
  min-width: 560px */

  min-width: 560px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.login-wrapper:hover{
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16),
              0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}


.portal-title {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 25px;
}

#login-form {
  margin-bottom: 30px;
  text-align: left;
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

/* Form Controls */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
  background-color: var(--bg-primary);
  /* box-shadow: none; */
  color: var(--text-primary);
  border-color: var(--primary-brand);
  /* box-shadow: 0 4px 16px rgba(94, 75, 159, 0.15); */
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control[readonly] {
  background-color: var(--bg-primary);
  cursor: pointer;
}
.input-group {
  display: flex;
}

.input-group .form-control {
  border-right: none;
}

.input-group-text {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-left: none;
  padding: 0 var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.input-group-text:hover {
  color: var(--text-secondary);
}

.error-message {
  font-size: 14px;
  color: var(--error-color);
  margin-top: 0;
  position: relative;
  width: 100%;
  margin:0rem 0 1rem;
   animation: slideInError 0.3s ease-out;

}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mb-3:not(:last-of-type) .error-message{
  margin-bottom: 1.5rem;
}
.error-message.show {
  display: block;
}
.form-control.is-invalid {
  border-color: #d32f2f !important;
  background-color: #ffebee;
  animation: shake 0.4s ease-in-out;
}


@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.mui-textfield input.form-control.is-invalid {
  border-color: #d32f2f !important;
  color: #d32f2f !important;
}

.mui-textfield.is-datepicker-open input.form-control {
  border-color: var(--primary-brand);
}

.mui-textfield.is-datepicker-open label {
  top: -0.6rem;
  left: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-brand);
  background: white;
  line-height: 1.2;
  font-weight: 500;
}

.mui-textfield.is-datepicker-open input.form-control::placeholder {
  color: transparent;
}

.mui-textfield input.form-control.is-invalid + label {
  color: #d32f2f !important;
}
.mui-textfield input.form-control.is-invalid:focus + label {
  color: #d32f2f !important;
}
.mui-textfield
  input.form-control.is-invalid:not(:placeholder-shown):not([value=""]) + label {
  color: #d32f2f !important;
}

.form-error-message {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  background-color: #ffebee;
  border-left: 4px solid var(--error-color);
  border-radius: 4px;
  color: #d32f2f;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  animation: slideDown 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}

.form-error-message.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-proceed {
  width: 100%;
  padding: 16px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-xl);
  background: var(--secondary-btn-bg);
  color: var(--secondary-btn-text);
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  opacity: 0.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-proceed:not(:disabled) {
  background: var(--primary-brand);
  color: white;
  cursor: pointer;

  opacity: 1;
  box-shadow: 0 4px 16px rgba(94, 75, 159, 0.3);
}

.btn-proceed:not(:disabled):hover, .btn-proceed:not(:disabled):focus,.btn-proceed:not(:disabled):active {
  background: var(--secondary-brand);
  box-shadow: 0 6px 24px rgba(94, 75, 159, 0.4);
  transform: translateY(-2px);
}


.support-text {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.6;
    animation: fadeInUp 0.7s ease-out 0.3s both;
    margin-top: 1.2rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-text strong {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}
.verify-container {
  width: 100%;
  max-width: 500px;
}

.verify-wrapper {
  background: var(--bg-primary);
  padding: 4rem 2.5rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.verify-wrapper:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16),
              0 4px 12px rgba(0, 0, 0, 0.1);
}
.otp-info-message {
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.otp-info-message p {
  font-size: var(--font-size-lg);
  color: var(--secondary-input);
  margin: 0;
  line-height: 1.6;
}

.otp-info-message .mobile-number {
  color: var(--primary-brand);
}

#otp-form {
  margin-bottom: 1rem;
  text-align: center;
}
.otp-input-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.otp-input {
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  text-align: center;
  border: 2px solid var(--primary-brand);
  border-radius: var(--radius-sm);
  outline: none;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(94, 75, 159, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-input:hover {
  border-color: var(--secondary-brand);
   box-shadow: 0 4px 12px rgba(94, 75, 159, 0.15);
  transform: translateY(-2px);
}

.otp-input:focus {
  border-color: var(--primary-brand);
  background-color: var(--bg-light);
  box-shadow: 0 4px 16px rgba(94, 75, 159, 0.3);
  transform: translateY(-2px);
}

.otp-input::placeholder {
  color: var(--text-muted);
}
.otp-input.filled {
  border-color: var(--primary-brand);
  background-color: var(--secondary-brand);
  animation: fillOTP 0.3s ease;
}
@keyframes fillOTP {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input[type=number] {
  -moz-appearance: textfield;
}

.resend-section {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.resend-text {
  font-size: var(--font-size-lg);
  color: var(--primary-brand);
}

.timer {
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  animation: pulse 1s ease-in-out infinite;
  font-weight: var(--font-weight-bold);
}


@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.resend-link {
  color: var(--secondary-btn-text);
  font-size: var(--font-size-sm);
  cursor: not-allowed;
  padding: 0 0 0 8px;
  text-decoration: underline;
  transition: all var(--transition-normal);
  display: inline-block;
  pointer-events: none;
}

.resend-link.active {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
   color: var(--primary-brand) !important;
}

.resend-link.active:hover {
  color: var(--primary-dark);
}

.back-button {
  position: absolute;
  top: 10px;
  left: 0;
  background: transparent;
  border: none;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  z-index: 1000;
  padding: 8px 12px;
  transition: color 0.2s ease;
}

.back-button i {
  font-size: 1.25rem;
}

.back-button:hover {
  color: var(--primary-brand);
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-loading-text {
    display: inline-block;
}
.btn-proceed.loading {
    background-color: var(--primary-brand) !important;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(94, 75, 159, 0.4);
    color: #ffffff !important;
}

.btn-proceed.loading:hover {
    transform: none !important;
    background-color: var(--primary-brand) !important;
}
.otp-input.error {
  border-color: var(--error-color);
  background-color: var(--error-light);
}

.otp-input.error:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}
@media (max-height: 800px) and (min-height: 600px) {

  .login-wrapper,
  .verify-wrapper {
    padding: 15px 30px;
  }

  .verify-container {
    max-width: 450px;
  }

  .partner-logo {
    max-width: 140px;
    margin: 0 auto 8px;
  }

  .logo-section {
    margin-bottom: 10px;
  }

  .logo-section h5 {
    font-size: calc(var(--font-size-lg) * 0.9);
    margin-bottom: 8px;
  }

  .logo-section p {
    font-size: calc(var(--font-size-sm) * 0.9);
    line-height: 1.4;
  }

  .portal-title {
    font-size: calc(var(--font-size-xl) * 0.95);
    margin-bottom: 18px;
  }

  .mui-textfield input.form-control {
    padding: 0.6rem 2.5rem 0.6rem 0.6rem;
    height: 42px;
    font-size: calc(var(--font-size-base) * 0.95);
  }

  .mui-textfield label {
    top: 12px;
    font-size: 0.95rem;
  }

  .mui-textfield input.form-control:focus+label,
  .mui-textfield input.form-control:not(:placeholder-shown):not([value=""])+label {
    top: -0.55rem;
    font-size: 0.8rem;
  }

  .mb-3 {
    margin-bottom: 18px !important;
  }

  .error-message {
    font-size: 14px;
    margin-top: 10px;
  }
  #login-form .btn-proceed,
  #otp-form .btn-verify {
    padding: 12px;
    font-size: calc(var(--font-size-lg) * 0.9);
    margin-top: 8px;
  }

  .support-text {
    font-size: calc(var(--font-size-sm) * 0.9);
    line-height: 1.5;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .otp-input-group {
    gap: 20px;
    margin-bottom: 12px;
  }

  .otp-info-message {
    padding: 10px 0;
    margin-bottom: 12px;
  }

  .otp-info-message p {
    font-size: calc(var(--font-size-lg) * 0.9);
  }

  .resend-text {
    font-size: calc(var(--font-size-lg) * 0.9);
  }

  .timer {
    font-size: calc(var(--font-size-base) * 0.9);
  }

  .resend-section {
    margin-bottom: 15px;
  }
  #login-form{
    margin-bottom: 15px;
  }
  .mb-3:not(:last-of-type) .error-message{
    margin-bottom: 1rem;
  }
}
@media (max-height: 600px) {

  .partner-logo {
    max-width: 120px;
    margin: 0 auto 5px;
  }

  .logo-section {
    margin-bottom: 15px;
  }

  .logo-section h5 {
    font-size: calc(var(--font-size-lg) * 0.8);
    margin-bottom: 5px;
  }

  .logo-section p {
    font-size: calc(var(--font-size-sm) * 0.8);
    line-height: 1.3;
  }

  .portal-title {
    font-size: calc(var(--font-size-xl) * 0.85);
    margin-bottom: 15px;
  }

  .mui-textfield input.form-control {
    padding: 0.5rem 2.5rem 0.5rem 0.5rem;
    height: 38px;
    font-size: calc(var(--font-size-base) * 0.9);
  }

  .mui-textfield label {
    top: 10px;
    font-size: 0.9rem;
  }

  .mui-textfield input.form-control:focus+label,
  .mui-textfield input.form-control:not(:placeholder-shown):not([value=""])+label {
    top: -0.5rem;
    font-size: 0.75rem;
  }

  .mb-3 {
    margin-bottom: 10px !important;
  }

  #login-form .btn-proceed,
  #otp-form .btn-verify {
    padding: 10px;
    font-size: calc(var(--font-size-lg) * 0.8);
    margin-top: 8px;
  }

  .support-text {
    font-size: calc(var(--font-size-sm) * 0.8);
    line-height: 1.4;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .otp-input-group {
    gap: 10px;
    margin-bottom: 12px;
  }

  .otp-info-message {
    padding: 10px 0;
    margin-bottom: 12px;
  }

  .otp-info-message p {
    font-size: calc(var(--font-size-lg) * 0.8);
  }

  .resend-text {
    font-size: calc(var(--font-size-lg) * 0.8);
  }

  .timer {
    font-size: calc(var(--font-size-base) * 0.8);
  }
}

@media (max-width: 600px) {
  .login-wrapper {
    padding: 0.5rem 1.5rem;
    min-width: 300px;
  }

  .verify-wrapper {
    padding: 0.5rem 1.5rem;
  }
  .portal-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 25px;
  }
  .form-control {
    font-size: 16px;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .otp-input-group {
    gap: 8px;
    margin-bottom: 25px;
  }

  .resend-section {
    gap: 10px;
  }

  .otp-info-message {
    padding: 15px 12px;
  }

  .otp-info-message p {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .otp-input-group {
    gap: 6px;
  }

  .resend-text {
    font-size: 12px;
  }

  .timer {
    font-size: var(--font-size-sm);
  }

  .logo-section h4 {
    font-size: var(--font-size-2xl);
  }

  .logo-section h5 {
    font-size: var(--font-size-sm);
  }

  .portal-title {
    font-size: var(--font-size-lg);
    margin-bottom: 20px;
  }
}

.shimmer-aside {
    width: 250px;
    background: #f5f5f5;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
}

.shimmer-logo {
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: shimmer 2s infinite;
}

.shimmer-menu-item {
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    margin-bottom: 15px;
    animation: shimmer 2s infinite;
}

.shimmer-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shimmer-header {
    height: 80px;
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.shimmer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: shimmer 2s infinite;
}

.shimmer-main {
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.shimmer-card {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 2s infinite;
}

.shimmer-footer {
    height: 60px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}