/* DealerPro Login */

:root {
  --green-dark: #02312B;
  --green: #066B59;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --radius: 14px;
  --font-en: 'Inter', system-ui, sans-serif;
  --font-bn: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-en);
  background: linear-gradient(135deg, #02312B 0%, #066B59 55%, #0a8f74 100%);
  min-height: 100vh;
  color: var(--text);
}

body.lang-bn {
  font-family: var(--font-bn);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(2, 49, 43, 0.28);
  padding: 2rem 1.75rem 1.5rem;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
}

.login-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.85rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 107, 89, 0.12);
}

.form-error {
  font-size: 0.8125rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.form-error[hidden] {
  display: none !important;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--green-dark);
}

.login-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 0.2rem;
  border: 1px solid var(--border);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.login-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
