* {
  box-sizing: border-box;
}
html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}
body {
  background: #f9f9f9;
  font-family: "Inter", "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: #111;
}
a {
  color: #0055d4;
  text-decoration-color: #abcbfb;
}
a:hover {
  color: #111;
}
label {
  cursor: pointer;
  color: #444;
}
h1,
h2,
h3,
h4 {
  font-weight: 400;
}
.section {
  margin-bottom: 45px;
}

input[type="text"], input[type="email"], input[type="password"], select {
  padding: 10px 15px;
  border: 1px solid #888;
  border-radius: 3px;
  width: 100%;
  box-shadow: 2px 2px 0 #f3f3f3;
  border: 1px solid #ddd;
  font-size: 1em;
}
  input:focus {
    border-color: #0055d4;
  }

input:focus::placeholder {
  color: transparent;
}

input[disabled] {
  opacity: 0.5;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}
.small {
  font-size: 0.875em;
}
.error {
  color: #FF5722;
}
.button {
  background: #0055d4;
  padding: 15px 30px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  display: inline-block;
  min-width: 150px;
  font-size: 1.1em;
  text-align: center;
}
.button:hover {
  background: #333;
  color: #fff;
}
.button.button-outline {
  background: #fff;
  border: 1px solid #0055d4;
  color: #0055d4;
}
.button.button-outline:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
}

.container {
  margin: 60px auto 15px auto;
  max-width: 550px;  
}

.wrap {
  background: #fff;
  padding: 40px;
  box-shadow: 2px 2px 0 #f3f3f3;
  border: 1px solid #eee;
}

.header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.header .logo img {
  width: auto;
  max-width: 150px;
  max-height: 48px;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.row {
  margin-bottom: 20px;
}
.lists {
  list-style-type: none;
  padding: 0;
}
  .lists li {
    margin: 0 0 5px 0;    
  }
  .lists .description {
    margin: 0 0 15px 0;
    font-size: 0.875em;
    line-height: 1.3rem;
    color: #888;
    margin-left: 25px;
  }
  .form .nonce {
    display: none;
  }
  .form .captcha {
    margin-top: 30px;
  }

.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}
  .archive .date {
    display: block;
    color: #666;
    font-size: 0.875em;
  }
  .archive li {
    margin-bottom: 15px;
  }
  .feed {
    margin-right: 15px;
  }

.home-options {
  margin-top: 30px;
}
  .home-options a {
    margin: 0 7px;
  }

.pagination {
  margin-top: 30px;
  text-align: center;
}
  .pg-page {
    display: inline-block;
    padding: 0 10px;
    text-decoration: none;
  }
  .pg-page.pg-selected {
    text-decoration: underline;
    font-weight: bold;
  }

.login .submit {
  margin-top: 20px;
}
  .login button {
    width: 100%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login button img {
    max-width: 24px;
    margin-right: 10px;
  }
  .login input[name=totp_code] {
    font-size: 2em;
    letter-spacing: 5px;
    text-align: center;
  }

footer.container {
  margin-top: 15px;
  text-align: center;
  color: #aaa;
  font-size: 0.775em;
  margin-top: 30px;
  margin-bottom: 30px;
}
  footer a {
    color: #aaa;
    text-decoration: none;
  }
  footer a:hover {
    color: #111;
  }

@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 30px;
    max-width: none;
  }
}

/* ============================================================
   TTMS Food split-screen auth (login) — matches the orange
   restaurant_admin_ttms_food dashboard. Scoped to body.ttms-auth
   so other public pages are unaffected.
   ============================================================ */
body.ttms-auth {
  background: #fafafa;
}
.ttms-auth .auth-split {
  display: flex;
  min-height: 100vh;
}

/* Left brand panel */
.ttms-auth .auth-brand {
  position: relative;
  width: 50%;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f97316 0%, #f97316 55%, #c2410c 100%);
}
.ttms-auth .auth-brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 48px;
}
.ttms-auth .brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ttms-auth .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ttms-auth .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ttms-auth .brand-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ttms-auth .brand-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 14ch;
}
.ttms-auth .brand-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44ch;
  margin: 0 0 30px;
}
.ttms-auth .brand-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.ttms-auth .brand-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.ttms-auth .brand-stats span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.ttms-auth .brand-stats i {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}
.ttms-auth .brand-foot {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.ttms-auth .circle {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}
.ttms-auth .circle.c1 { width: 256px; height: 256px; top: 80px; left: 80px; }
.ttms-auth .circle.c2 { width: 384px; height: 384px; bottom: 140px; right: 40px; }
.ttms-auth .circle.c3 { width: 192px; height: 192px; top: 50%; left: 33%; }

/* Right form panel */
.ttms-auth .auth-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.ttms-auth .auth-card {
  width: 100%;
  max-width: 420px;
}
.ttms-auth .auth-logo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 26px;
}
.ttms-auth .auth-logo-mobile img {
  height: 56px;
}
.ttms-auth .auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: #171717;
  margin: 0 0 6px;
}
.ttms-auth .auth-sub {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 28px;
}
.ttms-auth .form-group {
  margin-bottom: 18px;
}
.ttms-auth .auth-card label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #171717;
  margin-bottom: 7px;
}
.ttms-auth .row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ttms-auth .row-between a {
  font-size: 14px;
  color: #f97316;
  text-decoration: none;
}
.ttms-auth .row-between a:hover {
  color: #c2410c;
}
.ttms-auth .input-wrap {
  position: relative;
}
.ttms-auth .input-wrap > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}
.ttms-auth .auth-card input[type="text"],
.ttms-auth .auth-card input[type="password"] {
  width: 100%;
  padding: 12px 42px 12px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  box-shadow: none;
  background: #fff;
}
.ttms-auth .auth-card input:focus {
  border-color: #f97316;
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.ttms-auth .pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #9ca3af;
  line-height: 0;
}
.ttms-auth .pw-toggle svg {
  width: 18px;
  height: 18px;
}
.ttms-auth .pw-toggle:hover,
.ttms-auth .pw-toggle.is-on {
  color: #f97316;
}
.ttms-auth .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border: 0;
  border-radius: 8px;
  background: #f97316;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ttms-auth .btn-primary:hover {
  background: #ea6a0c;
}
.ttms-auth .btn-primary svg {
  width: 18px;
  height: 18px;
}
.ttms-auth .auth-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 18px;
}
.ttms-auth .divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 24px 0 16px;
}
.ttms-auth .divider::before,
.ttms-auth .divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e5e7eb;
}
.ttms-auth .divider span {
  padding: 0 12px;
}
.ttms-auth .btn-outline {
  width: 100%;
  padding: 11px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #171717;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ttms-auth .btn-outline:hover {
  background: #f9fafb;
}
.ttms-auth .btn-outline img {
  width: 20px;
  height: 20px;
}
.ttms-auth .auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.ttms-auth .auth-links a {
  color: #f97316;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.ttms-auth .auth-links a:hover {
  color: #c2410c;
  text-decoration: underline;
}
.ttms-auth .auth-foot {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  margin-top: 16px;
}
.ttms-auth .auth-foot a {
  color: #9ca3af;
  text-decoration: none;
}
.ttms-auth .auth-foot a:hover {
  color: #171717;
}

@media screen and (max-width: 900px) {
  .ttms-auth .auth-brand {
    display: none;
  }
  .ttms-auth .auth-logo-mobile {
    display: block;
  }
}
