body.crm-auth-locked {
  margin: 0;
  background: #f3f7fc;
}

body.crm-auth-locked #root,
body.crm-auth-locked #mobile-crm-root {
  display: none !important;
}

.crm-auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #0f172a;
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.18), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  font-family: Inter, "DM Sans", Arial, sans-serif;
  box-sizing: border-box;
}

.crm-auth-card {
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid #dbe7f5;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.crm-auth-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #155eef, #0f8cff);
  font-weight: 950;
  font-size: 22px;
}

.crm-auth-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.crm-auth-subtitle {
  margin: 8px 0 24px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

.crm-auth-form {
  display: grid;
  gap: 14px;
}

.crm-auth-field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.crm-auth-field input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d8e4f2;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.crm-auth-field input:focus {
  border-color: #155eef;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.13);
}

.crm-auth-button {
  min-height: 52px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: #155eef;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(21, 94, 239, 0.24);
}

.crm-auth-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.crm-auth-error {
  min-height: 20px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 800;
}

.crm-auth-forbidden {
  display: grid;
  gap: 14px;
}
