/* All selectors are isolated under the unique WMG application ID so the
   active WordPress theme and Elementor global styles cannot override them. */
#wmg-auth-app,
#wmg-auth-app * { box-sizing: border-box !important; }

#wmg-auth-app {
  --wmg-black: #080908;
  --wmg-ink: #141714;
  --wmg-paper: #f5f6f3;
  --wmg-line: #d8ddd7;
  --wmg-green: #86c99a;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr);
  overflow: hidden;
  background: var(--wmg-paper);
  color: var(--wmg-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

#wmg-auth-app h1,
#wmg-auth-app h2,
#wmg-auth-app p { margin: 0; }

#wmg-auth-app a { color: inherit; text-decoration: none; }

#wmg-auth-app button,
#wmg-auth-app input { font: inherit; }

#wmg-auth-app .wmg-auth-visual {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px clamp(30px, 5vw, 80px);
  background:
    radial-gradient(circle at 78% 20%, rgba(134, 201, 154, .18), transparent 28%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--wmg-black);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: #fff;
}

#wmg-auth-app .wmg-auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

#wmg-auth-app .wmg-auth-brand > span:last-child { display: flex; flex-direction: column; }
#wmg-auth-app .wmg-auth-brand small { margin-top: 3px; color: #8a908a; font-size: 6px; letter-spacing: .24em; }
#wmg-auth-app .wmg-auth-mark { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #444; border-radius: 50%; color: var(--wmg-green); font-size: 9px; }
#wmg-auth-app .wmg-auth-visual > div:last-child { max-width: 600px; }
#wmg-auth-app .wmg-auth-visual > div:last-child > p { margin-bottom: 20px; color: var(--wmg-green); font-size: 8px; font-weight: 900; letter-spacing: .18em; }
#wmg-auth-app .wmg-auth-visual h2 { font: 400 clamp(42px, 5vw, 72px)/.98 Georgia, serif; letter-spacing: -.045em; }
#wmg-auth-app .wmg-auth-visual ul { list-style: none; margin: 38px 0 0; padding: 0; border-top: 1px solid #343734; }
#wmg-auth-app .wmg-auth-visual li { padding: 15px 0; border-bottom: 1px solid #343734; color: #afb4af; font-size: 11px; }
#wmg-auth-app .wmg-auth-visual li::before { content: '✓'; margin-right: 10px; color: var(--wmg-green); }

#wmg-auth-app .wmg-auth-card {
  width: min(100%, 760px);
  align-self: center;
  justify-self: center;
  padding: 70px clamp(28px, 7vw, 95px);
}

#wmg-auth-app .wmg-auth-kicker { margin-bottom: 18px; color: #568866; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
#wmg-auth-app .wmg-auth-card h1 { max-width: 620px; font: 400 clamp(42px, 5vw, 68px)/1 Georgia, serif; letter-spacing: -.045em; }
#wmg-auth-app .wmg-auth-intro { max-width: 590px; margin-top: 24px; color: #6c726c; font-size: 13px; line-height: 1.75; }
#wmg-auth-app form { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
#wmg-auth-app .wmg-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#wmg-auth-app label { display: flex; flex-direction: column; gap: 8px; color: #4f554f; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
#wmg-auth-app .wmg-auth-wide { grid-column: 1 / -1; }
#wmg-auth-app input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #cdd2cc; border-radius: 7px; outline: none; background: #fff; color: #151815; font-size: 12px; box-shadow: none; }
#wmg-auth-app input:focus { border-color: #5f9d72; box-shadow: 0 0 0 3px rgba(112,191,139,.13); }
#wmg-auth-app .wmg-password-wrap { position: relative; display: block; }
#wmg-auth-app .wmg-password-wrap button { position: absolute; top: 50%; right: 11px; padding: 5px; transform: translateY(-50%); border: 0; background: transparent; color: #53795f; font-size: 8px; font-weight: 900; cursor: pointer; }
#wmg-auth-app .wmg-password-help { color: #7d837d; font-size: 9px; }
#wmg-auth-app .wmg-auth-check { display: flex; align-items: flex-start; flex-direction: row; gap: 9px; color: #676d67; font-weight: 400; line-height: 1.55; }
#wmg-auth-app .wmg-auth-check input { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; accent-color: #4c8f61; }
#wmg-auth-app .wmg-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#wmg-auth-app .wmg-auth-row > a { color: #4e805d; font-size: 9px; font-weight: 800; }
#wmg-auth-app .wmg-auth-primary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border: 1px solid #111; border-radius: 6px; background: #111; color: #fff; font-size: 10px; font-weight: 900; cursor: pointer; transition: .3s ease; }
#wmg-auth-app .wmg-auth-primary:hover { transform: translateY(-2px); border-color: #4e8f62; background: #4e8f62; }
#wmg-auth-app .wmg-auth-primary:disabled { cursor: wait; opacity: .6; transform: none; }
#wmg-auth-app .wmg-auth-switch { margin-top: 22px; color: #777d77; font-size: 10px; text-align: center; }
#wmg-auth-app .wmg-auth-switch a { color: #3f7950; font-weight: 900; }
#wmg-auth-app .wmg-auth-message { margin-top: 24px; padding: 13px 15px; border: 1px solid #e0b8b8; border-radius: 7px; background: #fff2f2; color: #8c3c3c; font-size: 10px; line-height: 1.6; }
#wmg-auth-app .wmg-auth-message.success { border-color: #b5d9c0; background: #edf8f0; color: #326f45; }
#wmg-auth-app .wmg-auth-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
#wmg-auth-app .wmg-auth-verify { grid-column: 1 / -1; }

#wmg-auth-app.wmg-portal-foundation { grid-template-columns: 240px 1fr; background: #f1f3f0; }
#wmg-auth-app.wmg-portal-foundation > aside { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 18px; background: #0b0d0b; color: #fff; }
#wmg-auth-app .wmg-portal-logo { display: flex; flex-direction: column; margin: 0 10px 35px; font-size: 15px; font-weight: 900; }
#wmg-auth-app .wmg-portal-logo span { color: #7f877f; font-size: 6px; letter-spacing: .2em; }
#wmg-auth-app.wmg-portal-foundation nav { display: flex; flex-direction: column; gap: 4px; }
#wmg-auth-app.wmg-portal-foundation nav a { padding: 12px; border-radius: 7px; color: #8d938d; font-size: 10px; }
#wmg-auth-app.wmg-portal-foundation nav a.active { background: rgba(134,201,154,.14); color: #a5dfb8; }
#wmg-auth-app .wmg-portal-logout { margin: auto 10px 0; color: #858b85; font-size: 9px; }
#wmg-auth-app.wmg-portal-foundation > main { padding: 0 36px 50px; }
#wmg-auth-app.wmg-portal-foundation main > header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d8ddd7; }
#wmg-auth-app.wmg-portal-foundation header small { color: #777e77; font-size: 6px; font-weight: 900; letter-spacing: .13em; }
#wmg-auth-app.wmg-portal-foundation header h1 { margin-top: 5px; font: 400 29px Georgia, serif; }
#wmg-auth-app .wmg-user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 11px 5px 5px; border: 1px solid #d6dbd5; border-radius: 8px; background: #fff; }
#wmg-auth-app .wmg-user-chip b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: #111; color: #a5dfb8; }
#wmg-auth-app .wmg-user-chip span { display: flex; flex-direction: column; font-size: 8px; font-weight: 800; }
#wmg-auth-app .wmg-user-chip small { margin-top: 3px; font-weight: 400; }
#wmg-auth-app .wmg-foundation-card { max-width: 920px; margin-top: 32px; padding: 42px; border: 1px solid #d8ddd7; border-radius: 12px; background: #fff; }
#wmg-auth-app .wmg-foundation-card > span { color: #4e8b61; font-size: 7px; font-weight: 900; letter-spacing: .14em; }
#wmg-auth-app .wmg-foundation-card h2 { margin: 15px 0; font: 400 38px/1.1 Georgia, serif; }
#wmg-auth-app .wmg-foundation-card p { max-width: 690px; color: #737973; font-size: 11px; line-height: 1.7; }

@media (max-width: 900px) {
  #wmg-auth-app { grid-template-columns: 1fr; }
  #wmg-auth-app .wmg-auth-visual { display: none; }
  #wmg-auth-app.wmg-portal-foundation { grid-template-columns: 74px 1fr; }
  #wmg-auth-app.wmg-portal-foundation > aside { padding: 20px 8px; }
  #wmg-auth-app .wmg-portal-logo { font-size: 10px; }
  #wmg-auth-app .wmg-portal-logo span,
  #wmg-auth-app.wmg-portal-foundation nav a { font-size: 0; }
  #wmg-auth-app.wmg-portal-foundation nav a::first-letter { font-size: 10px; }
  #wmg-auth-app.wmg-portal-foundation > main { padding: 0 18px 40px; }
}

@media (max-width: 620px) {
  #wmg-auth-app .wmg-auth-card { padding: 52px 21px; }
  #wmg-auth-app .wmg-auth-grid { grid-template-columns: 1fr; }
  #wmg-auth-app .wmg-auth-wide { grid-column: auto; }
  #wmg-auth-app.wmg-portal-foundation { display: block; }
  #wmg-auth-app.wmg-portal-foundation > aside { min-height: auto; display: none; }
  #wmg-auth-app.wmg-portal-foundation main > header { align-items: flex-start; flex-direction: column; gap: 15px; padding: 22px 0; }
  #wmg-auth-app .wmg-foundation-card { padding: 26px 20px; }
  #wmg-auth-app .wmg-foundation-card h2 { font-size: 30px; }
}

