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;
}

/* ── Login Page ─────────────────────────────────────────────────────────────── */
.login-body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background: #f0f4f8;
}

.login-wrapper {
  display: flex;
  height: 100vh;
}

/* Left brand panel */
.login-brand {
  width: 42%;
  background: linear-gradient(145deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  color: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.login-brand::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
}

.login-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}

.login-brand-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .35rem;
}

.login-brand-subtitle {
  font-size: .9rem;
  opacity: .8;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.login-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.login-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.login-features li div {
  display: flex;
  flex-direction: column;
}

.login-features li strong {
  font-size: .9rem;
  font-weight: 600;
}

.login-features li span {
  font-size: .8rem;
  opacity: .75;
}

.login-brand-footer {
  font-size: .78rem;
  opacity: .55;
}

/* Right form panel */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  background: #fff;
}

.login-form-inner {
  width: 100%;
  max-width: 400px;
}

.login-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .25rem;
}

.login-form-subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
  font-size: .9rem;
}

.login-input-group .input-group-text {
  background: #f8f9fa;
  border-right: none;
  color: #6c757d;
}

.login-input-group .form-control {
  border-left: none;
  border-right: none;
  font-size: 1rem;
}

.login-input-group .form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

.login-input-group:focus-within .input-group-text,
.login-input-group:focus-within .form-control,
.login-input-group:focus-within .login-pwd-toggle {
  border-color: #0d47a1;
}

.login-pwd-toggle {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: none;
  color: #6c757d;
  padding: 0 .85rem;
}

.login-pwd-toggle:hover {
  background: #e9ecef;
  color: #343a40;
}

.login-submit-btn {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: opacity .2s, transform .1s;
}

.login-submit-btn:hover:not(:disabled) {
  opacity: .92;
  transform: translateY(-1px);
}

.login-submit-btn:active {
  transform: translateY(0);
}

/* ── Account Manager avatar ─────────────────────────────────────────────────── */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
