body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 245px;
  background: #111827;
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 18px rgba(0,0,0,0.18);
}

.sidebar-header {
  padding: 26px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header img {
  max-width: 145px;
  max-height: 70px;
}

.logo-fallback {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.all-company {
  margin-top: 10px;
  font-size: 12px;
  color: #d1d5db;
}

.sidebar-nav {
  padding: 18px 12px;
}

.sidebar-nav a {
  display: block;
  padding: 13px 16px;
  margin-bottom: 6px;
  border-radius: 10px;
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-nav a:hover {
  background: #6c2bd9;
  color: #fff;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.tenant-name {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.content {
  flex: 1;
  padding: 32px;
}

/* LOGIN */

.login-wrapper {
  min-height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 380px;
  background: #ffffff;
  padding: 38px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17,24,39,0.12);
  text-align: center;
}

.portal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 26px;
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: #374151;
}

input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: #6c2bd9;
  box-shadow: 0 0 0 3px rgba(108,43,217,0.12);
}

.email-suffix {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3ecff;
  color: #6c2bd9;
  font-weight: 700;
  font-size: 14px;
}

.btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #6c2bd9;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  margin-top: 6px;
}

.btn:hover {
  background: #5a22b5;
}

.error-box {
  background: #fff1f1;
  border: 1px solid #f0c7c7;
  color: #b42318;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
  text-align: left;
}

.tenant-links {
  margin-top: 18px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.8;
}

.tenant-links a {
  color: #6c2bd9;
  text-decoration: none;
  font-weight: 700;
}

.footer {
  margin-top: 18px;
  font-size: 12px;
  color: #6c2bd9;
  font-weight: 700;
}

/* TABLE / ADMIN BASICS */

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(17,24,39,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}

th {
  color: #374151;
  font-weight: 800;
  background: #f9fafb;
}

.action-reset {
  background: #2563eb;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.action-reset.done {
  background: #16a34a;
}

/* LOGIN PAGE POLISH OVERRIDE */

.login-wrapper {
  min-height: 100vh;
  background: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 360px;
  padding: 34px 38px 28px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17,24,39,0.10);
}

.portal-title {
  font-size: 22px;
  font-weight: 800;
  color: #202635;
  margin-bottom: 6px;
}

.portal-subtitle {
  font-size: 13px;
  color: #7b8190;
  margin-bottom: 26px;
}

.input-label {
  font-size: 13px;
  font-weight: 700;
  color: #343b4a;
}

input {
  height: 44px;
  border-radius: 9px;
  border: 1px solid #d8dce5;
  padding: 0 14px;
  font-size: 14px;
}

.email-suffix {
  height: 44px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  background: #f1e9ff;
  color: #6c2bd9;
}

.btn {
  height: 44px;
  border-radius: 9px;
  background: #6c2bd9;
  font-size: 14px;
  margin-top: 8px;
}

.tenant-links {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
}

.footer {
  margin-top: 18px;
  font-size: 12px;
}

/* EXACT LOGIN RESTORE */

.login-page {
  min-height: 100vh;
  margin: 0;
  background: #f4f3fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

.pro-login-card {
  width: 600px;
  background: #ffffff;
  border-radius: 22px;
  padding: 36px 54px 30px;
  box-shadow: 0 20px 55px rgba(17,24,39,0.12);
  text-align: center;
}

.login-logo img {
  max-width: 190px;
  max-height: 72px;
  margin-bottom: 18px;
}

.logo-fallback-dark {
  font-size: 22px;
  font-weight: 800;
  color: #6c2bd9;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.pro-login-card h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  color: #15213a;
}

.pro-login-card p {
  margin: 3px 0 8px;
  color: #8a819a;
  font-size: 14px;
}

.login-accent {
  width: 58px;
  height: 4px;
  background: #7c2df2;
  border-radius: 99px;
  margin: 10px auto 6px;
}

.pro-login-card h2 {
  margin: 0 0 20px;
  font-size: 23px;
  font-weight: 800;
  color: #111111;
}

.pro-login-card label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  color: #111111;
  margin: 16px 0 8px;
}

.split-input,
.full-input {
  height: 50px;
  border: 1px solid #ddd8e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.input-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  width: 42px;
  text-align: center;
  color: #6c2bd9;
  font-size: 16px;
}

.eye-icon {
  width: 54px;
  text-align: center;
  font-size: 15px;
}

.split-input input,
.full-input input {
  flex: 1;
  height: 100%;
  border: none !important;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: none !important;
  font-size: 14px;
}

.email-domain {
  height: 100%;
  min-width: 170px;
  padding: 0 18px;
  background: #f0e7ff;
  color: #6c2bd9;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e4d8ff;
}

.login-btn {
  width: 100%;
  height: 48px;
  margin-top: 26px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(90deg, #6926dd, #8936f0);
  color: white;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.secure-footer {
  margin-top: 18px;
  color: #8a819a;
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .pro-login-card {
    width: calc(100% - 48px);
    padding: 30px 26px;
  }

  .split-input {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .input-left {
    height: 50px;
  }

  .email-domain {
    height: 44px;
    border-left: none;
    border-top: 1px solid #e4d8ff;
  }
}

.login-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #8a819a;
}

.login-logo img {
  margin-bottom: 12px;
}

/* Foleeo login input + password eye hover polish */
.full-input input,
.split-input input {
  caret-color: #7c3aed;
}

.full-input:focus-within,
.split-input:focus-within {
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,.14) !important;
}

.full-input:focus-within .input-icon,
.split-input:focus-within .input-icon {
  color: #7c3aed !important;
  filter: saturate(1.25);
}

.eye-icon {
  cursor: pointer !important;
  color: #7c3aed !important;
  opacity: .9 !important;
  user-select: none;
  padding: 6px;
  border-radius: 10px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.eye-icon:hover {
  background: rgba(124,58,237,.12) !important;
  color: #5b21b6 !important;
  transform: scale(1.16);
}

.eye-icon:active {
  transform: scale(.96);
}
