.dinepos-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(124, 58, 237, 0.18), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
}
.dinepos-auth .auth-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.dinepos-auth .auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
}
.dinepos-auth .auth-logo img {
  max-height: 56px;
}
.dinepos-auth .auth-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.dinepos-auth .auth-langs a {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  line-height: 1.2;
}
.dinepos-auth .auth-langs a.is-on {
  background: var(--dp-primary, #7367F0);
  color: #fff;
  border-color: var(--dp-primary, #7367F0);
}
.dinepos-auth .auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  padding: 36px 32px;
  max-width: 460px;
  margin: 0 auto;
}
.dinepos-auth h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}
.dinepos-auth .auth-lead {
  margin: 0 0 24px;
  color: #64748b;
}
.dinepos-auth .auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.dinepos-auth .auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  font-weight: 600;
  font-size: 13px;
}
.dinepos-auth .auth-tabs a.active_login_btn {
  background: var(--dp-primary, #7367F0);
  color: #fff;
}
.dinepos-auth .auth-field {
  margin-bottom: 16px;
}
.dinepos-auth .auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.dinepos-auth .auth-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
}
.dinepos-auth .auth-field input:focus {
  outline: none;
  border-color: var(--dp-primary, #7367F0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dp-primary, #7367F0) 20%, transparent);
}
.dinepos-auth .pw-wrap {
  position: relative;
}
.dinepos-auth .pw-wrap button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.dinepos-auth .submit_login,
.dinepos-auth .auth-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px;
  background: var(--dp-primary, #7367F0);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.dinepos-auth .auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 14px;
}
.dinepos-auth .auth-links a {
  color: var(--dp-primary, #7367F0);
  text-decoration: none;
  font-weight: 600;
}
.dinepos-auth .red_error,
.dinepos-auth .green_error,
.dinepos-auth .error_txt {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.dinepos-auth .red_error,
.dinepos-auth .error_txt {
  background: #fef2f2;
  color: #b91c1c;
}
.dinepos-auth .green_error {
  background: #ecfdf5;
  color: #047857;
}
.dinepos-auth .auth-ver {
  text-align: center;
  color: #94a3b8;
  margin-top: 16px;
  font-size: 12px;
}
.dinepos-auth .dinepos-demo-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  text-align: center;
}
.dinepos-auth .dinepos-demo-logins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
}
.dinepos-auth .dinepos-demo-logins form,
.dinepos-auth .dinepos-demo-login-form {
  margin: 0;
  min-width: 0;
  width: 100%;
  display: flex;
}
.dinepos-auth .dinepos-demo-logins .btn_demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}
.dinepos-auth .dinepos-demo-logins form:last-child {
  grid-column: 1 / -1;
  justify-content: center;
}
.dinepos-auth .dinepos-demo-logins form:last-child .btn_demo {
  width: 100%;
  max-width: calc(50% - 5px);
}
.dinepos-auth .auth-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  margin: 4px auto 0;
  padding: 12px 20px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid #c52128;
  background: #c52128;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.dinepos-auth .auth-buy:hover,
.dinepos-auth .auth-buy:focus {
  background: #9f1239;
  border-color: #9f1239;
  color: #fff;
}
.dinepos-auth.arabic-lang {
  direction: rtl;
}
.dinepos-auth.arabic-lang .pw-wrap button {
  right: auto;
  left: 8px;
}
.dinepos-auth.arabic-lang .auth-langs {
  justify-content: flex-start;
}
@media (max-width: 576px) {
  .dinepos-auth .auth-shell { padding: 16px 12px 32px; }
  .dinepos-auth .auth-top {
    flex-direction: column;
    align-items: stretch;
  }
  .dinepos-auth .auth-logo { text-align: center; }
  .dinepos-auth .auth-langs,
  .dinepos-auth.arabic-lang .auth-langs {
    justify-content: center;
  }
  .dinepos-auth .auth-card { padding: 24px 18px; }
  .dinepos-auth h1 { font-size: 22px; }
  .dinepos-auth .dinepos-demo-logins {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dinepos-auth .dinepos-demo-logins form:last-child .btn_demo {
    max-width: none;
  }
}
.dinepos-auth .dp-powered {
  display: block;
  text-align: center;
  margin-top: 18px;
  color: #64748b;
  font-size: 13px;
}
.dinepos-auth .dp-powered a {
  color: var(--dp-primary, #7367F0);
  font-weight: 800;
  text-decoration: none;
}
.dinepos-auth .dp-powered a:hover { text-decoration: underline; }
.dinepos-auth .display_none_login {
  display: none;
}
.dinepos-auth .text_center {
  text-align: center;
}
.dinepos-auth #loginpin {
  margin: 8px 0 18px;
}
.dinepos-auth .select2-container {
  width: 100% !important;
}
.dinepos-auth .select2-container .select2-selection--single {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.dinepos-auth .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
}
.dinepos-auth .select2-container .select2-selection--single .select2-selection__arrow {
  height: 42px;
}
