html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Password Policy Styles */
.password-policy {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}
.password-policy ul {
  margin: 6px 0 0 18px;
  padding: 0;
}
#forgotPasswordLink.forgot-link {
  font-size: 14px;
  color: #5b43f7;
  text-decoration: none;
  margin-bottom: 8px;
  margin-top: 4px;
  display: inline-block;
  float: right;
  cursor: pointer;
  font-weight: 500;
}
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 9999;
}

/* Design System Variables */
:root {
  --primary: #4F46E5;
  --primary-light: #6D6AE6;
  --primary-dark: #312E81;
  --primary-foreground: #fff;
  --accent: #14b8a6;
  --accent-light: #2dd4bf;
  --accent-foreground: #fff;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --destructive: #ef4444;
  --destructive-foreground: #fff;
  --success: #22c55e;
  --success-foreground: #fff;
  --warning: #f59e42;
  --warning-foreground: #fff;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --card: #fff;
  --card-foreground: #22223b;
  --shadow-md: 0 4px 6px -1px rgba(79,70,229,0.1), 0 2px 4px -1px rgba(79,70,229,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(79,70,229,0.1), 0 4px 6px -2px rgba(79,70,229,0.05);
  --radius: 12px;
}

.modal-content {
    background: var(--card) !important;   
    color: var(--card-foreground);
    border-radius: var(--radius);
    padding: 5px 38px;
    width: 470px;
    box-shadow: var(--shadow-md);
    position: relative;
    animation: fadeInUp 0.5s;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.close-btn:hover {
  color: #000;
}
.modal-tabs {
  display: flex;
  margin: 0 0 24px 0;
  background: #f3f4f6; 
  /* border-radius: 8px; */
  overflow: hidden;
}
.tab-btn {
  flex: 1;
  padding: 10px 0;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(79,70,229,0.08);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  color: var(--card-foreground);
  font-weight: 500;
  font-size: 15px;
}
input[type="email"], input[type="password"], input[type="text"],textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--input);
  background: #fff !important;
  color: var(--card-foreground);
  font-size: 15px;
  transition: border 0.2s, box-shadow 0.2s;
  border: 1px solid #ccc;
}
.lookupPlanNumber {
  width: 210px !important;
  height: 38px !important;
  background-color: #fff !important;
}
/* input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-light);
} */
 input:focus-visible,textarea:focus-visible{
  outline: none;
  border: 1px solid #ccc;
 }
 input.form-multi-select-search:focus-visible{
  border: none;
 }
.error-msg {
  color: var(--destructive);
  font-size: 13px;
  margin-top: 2px;
  animation: fadeInUp 0.4s;
}
.error-msg:empty{
  display: none;
}
.forgot-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.forgot-link:hover {
  color: var(--primary-dark);
}
.btn {
  /* width: 13%;
  height: 32px; */
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.social-btn {
  height: 44px;
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  background: var(--accent-light);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}
.password-field-wrapper {
  position: relative;
}
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s;
}
.toggle-password:hover {
  color: var(--primary);
}
.password-input {
  width: 100%;
}
.hidden {
  display: none;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 24px 0 12px 0;
}
.divider-text {
  position: relative;
  top: -14px;
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 13px;
  padding: 0 8px;
  font-weight: 500;
}
/* Password Strength Meter */
.password-strength {
  margin-top: 6px;
  width: 100%;
}
.strength-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--muted);
  overflow: hidden;
  position: relative;
}
.strength-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.strength-weak { background: var(--destructive); }
.strength-fair { background: var(--warning); }
.strength-good { background: var(--accent); }
.strength-strong { background: var(--success); }
.strength-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-left: 4px;
}
/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-form button,
#loginForm button,
#signupUnifiedForm button,
.modal-overlay button {
  padding: 10px 16px !important;
  border-radius: 13px !important;
}
#authModal .modal-tabs button{
  border-radius: 0px !important;
}
/*  ----------------------------------------------------------------------------------*/