/* CardDealer Admin - Global Styles */
:root {
  --primary: #6657e8;
  --primary-dark: #5143d0;
  --dark: #171827;
  --dark-2: #202134;
  --text: #242735;
  --muted: #9297a8;
  --border: #e9eaf0;
  --bg: #f6f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
.login-wrapper {
  min-height: 100vh;
  display: flex;
}
.brand-panel {
  width: 48%;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(108, 92, 231, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(108, 92, 231, 0.2),
      transparent 35%
    ),
    var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.brand-content {
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 70px;
}
.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7b6df3, #5143d0);
  box-shadow: 0 12px 30px rgba(102, 87, 232, 0.35);
  font-size: 25px;
}
.logo-text {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.3px;
}
.logo-text span {
  color: #877bff;
}
.brand-content h1 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.brand-content h1 span {
  color: #8175f5;
}
.brand-description {
  color: #a4a7b8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 45px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c6c8d4;
  font-size: 13px;
}
.feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: #8c81ff;
  font-size: 14px;
}
.floating-card {
  position: absolute;
  width: 180px;
  height: 250px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  color: rgba(255, 255, 255, 0.06);
  transform: rotate(18deg);
}
.card-one {
  right: -80px;
  top: 12%;
}
.card-two {
  left: -110px;
  bottom: 5%;
  transform: rotate(-20deg);
}
.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-container {
  width: 100%;
  max-width: 440px;
}
.login-header {
  margin-bottom: 32px;
}
.login-header h2 {
  font-size: 28px;
  font-weight: 750;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 8px;
  color: #414656;
}
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a2a7b5;
  font-size: 16px;
  pointer-events: none;
}
.form-control {
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding-left: 45px;
  padding-right: 45px;
  font-size: 13px;
  box-shadow: none;
}
.form-control:focus {
  border-color: #aaa2f5;
  box-shadow: 0 0 0 4px rgba(102, 87, 232, 0.08);
}
.password-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9da2b0;
  padding: 5px;
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--primary);
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #74798a;
  font-size: 12px;
  cursor: pointer;
}
.remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
}
.forgot-password {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.login-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7568ef);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 10px 25px rgba(102, 87, 232, 0.2);
  transition: 0.2s;
}
.login-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-dark), #6657e8);
}
.login-error {
  display: none;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff0f2;
  color: #d83c57;
  font-size: 12px;
  margin-bottom: 18px;
  border: 1px solid #ffd9df;
}
.login-error.show {
  display: flex;
  align-items: center;
  gap: 8px;
}
.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #a0a5b2;
  font-size: 10px;
  margin-top: 25px;
}
.security-note i {
  color: #20bf6b;
}
.login-footer {
  text-align: center;
  color: #a2a6b3;
  font-size: 10px;
  margin-top: 55px;
}
.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}
.login-button.loading .spinner {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 991px) {
  .brand-panel {
    width: 42%;
    padding: 35px;
  }
  .brand-content h1 {
    font-size: 38px;
  }
  .brand-logo {
    margin-bottom: 50px;
  }
  .login-panel {
    padding: 30px;
  }
}
@media (max-width: 767px) {
  .login-wrapper {
    display: block;
  }
  .brand-panel {
    width: 100%;
    min-height: auto;
    padding: 30px 25px 35px;
  }
  .brand-logo {
    margin-bottom: 30px;
  }
  .brand-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
  }
  .brand-description {
    font-size: 13px;
    margin-bottom: 25px;
  }
  .feature-list,
  .floating-card {
    display: none;
  }
  .login-panel {
    padding: 35px 20px;
  }
  .login-header h2 {
    font-size: 24px;
  }
  .login-footer {
    margin-top: 35px;
  }
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
}

.sidebar-logo-icon {
    width: 45px!important;
    height: 45px!important;

    display: flex!important;
    align-items: center!important;
    justify-content: center!important;

    background: #ffffff!important;
    border-radius: 10px!important;

    overflow: hidden!important;
    flex-shrink: 0!important;
}

.sidebar-tata-logo {
    width: 65px!important;
    height: 65px!important;
    object-fit: contain!important;
    display: block!important;
}

.sidebar-logo-text {
    font-size: 20px!important;
    font-weight: 700!important;
    color: #ffffff!important;
    letter-spacing: -0.3px!important;
}


/* =========================================================
   FINAL ADD LEAD DESCRIPTION FIX
========================================================= */

#addLeadModal .add-lead-modal textarea#addDescription {
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    max-height: none !important;

    padding: 12px 13px !important;

    resize: vertical !important;

    box-sizing: border-box !important;

    border: 1px solid #dfe3ea !important;
    border-radius: 9px !important;

    background: #ffffff !important;
    color: #111827 !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
}