/* =========================================================================
   Goshtmart sign-in pages (wp-login.php), loaded by GoSmart_Login.
   Phones: one glass card on the brand gradient. Wide screens: brand panel on the left, card on the right.
   html.gs-dark (same choice as the app) switches to the dark look.
   ========================================================================= */
html { background: #5c0705; }
html, body, * { touch-action: manipulation; } /* no zoom on a double tap (iPhone) */
body.login.gs-login {
  --ink: #141414; --soft: #6b6b6b; --line: #e7dfda; --field: #fff; --card: rgba(255, 255, 255, .78); --btn: #1c1514; --btn-ink: #fff; --edge: rgba(255, 255, 255, .8);
  margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; align-items: center; justify-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); box-sizing: border-box;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; color: var(--ink);
  background: radial-gradient(60% 40% at 15% 10%, rgba(246, 194, 28, .28), transparent 70%), radial-gradient(50% 40% at 90% 90%, rgba(244, 160, 102, .35), transparent 70%),
    linear-gradient(160deg, #5c0705 0%, #9a1309 32%, #d23a12 64%, #f08a4b 100%);
  background-attachment: fixed;
}
html.gs-dark body.login.gs-login {
  --ink: #f4f4f5; --soft: #a1a1aa; --line: rgba(255, 255, 255, .1); --field: #2a2a2c; --card: rgba(28, 28, 30, .86); --btn: #f4f4f5; --btn-ink: #0e0e0f; --edge: rgba(255, 255, 255, .06);
  background: radial-gradient(70% 45% at 50% -10%, rgba(215, 38, 43, .55), transparent 70%), #0e0e0f;
}
html.gs-dark { background: #0e0e0f; }
body.gs-login > .clear, body.gs-login #backtoblog, body.gs-login .privacy-policy-page-link, body.gs-login .language-switcher { display: none !important; }

/* the card */
.gs-login #login {
  width: min(400px, 100%); padding: 30px 26px 24px; margin: 0; box-sizing: border-box; border-radius: 30px;
  background: var(--card); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--edge), 0 40px 80px -40px rgba(40, 5, 0, .7);
  animation: gs-login-in .6s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes gs-login-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.gs-login #login h1 { margin: 0 0 18px; }
.gs-login #login h1 a {
  width: 60px; height: 60px; margin: 0; border-radius: 18px; background-size: 60px 60px; box-shadow: 0 14px 28px -12px rgba(215, 38, 43, .7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' rx='6' fill='%23d7262b'/%3E%3Cg transform='translate(3.2 3.2) scale(.73) rotate(-30 12 12)'%3E%3Cpath d='M2.5 8.2h12.6v6.4a2.4 2.4 0 0 1-2.4 2.4H5.4a2.9 2.9 0 0 1-2.9-2.9Z' fill='%23fff'/%3E%3Crect x='14.7' y='10.5' width='7.3' height='2.9' rx='1.45' fill='%23F6C21C'/%3E%3Ccircle cx='5.7' cy='11.1' r='1.2' fill='%23D7262B'/%3E%3C/g%3E%3C/svg%3E");
}
.gs-login-title h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.gs-login-title p { margin: 6px 0 20px; font-size: 15px; line-height: 1.5; color: var(--soft); }

/* WordPress' own form box becomes part of the card */
.gs-login form { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible; }
.gs-login form p, .gs-login .user-pass-wrap { margin-bottom: 14px; }
.gs-login label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.gs-login form .input, .gs-login input[type=text], .gs-login input[type=password], .gs-login input[type=email] {
  width: 100%; height: 54px; margin: 0; padding: 0 16px; box-sizing: border-box; border-radius: 16px; border: 1.5px solid var(--line); background: var(--field) !important;
  color: var(--ink); font-size: 16px; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.gs-login form .input:focus, .gs-login input[type=text]:focus, .gs-login input[type=password]:focus, .gs-login input[type=email]:focus {
  border-color: #d7262b; box-shadow: 0 0 0 4px rgba(215, 38, 43, .16); outline: none;
}
.gs-login .wp-pwd { position: relative; }
.gs-login .wp-pwd input { padding-right: 52px; }
.gs-login .wp-hide-pw { position: absolute; top: 0; right: 4px; height: 54px; width: 46px; border: 0; background: transparent; color: var(--soft); box-shadow: none; }
.gs-login .wp-hide-pw:focus { box-shadow: none; outline: none; color: var(--ink); }
.gs-login .forgetmenot { float: none; display: flex; align-items: center; gap: 8px; margin: 4px 0 18px !important; }
.gs-login .forgetmenot label { display: inline; margin: 0; font-weight: 400; color: var(--soft); }
.gs-login input[type=checkbox] { -webkit-appearance: auto; appearance: auto; width: 20px; height: 20px; margin: 0; border: 0; background: none; box-shadow: none; accent-color: #d7262b; }
.gs-login input[type=checkbox]::before { content: none !important; }
.gs-login .submit { margin: 0 !important; padding: 0; clear: both; }
.gs-login .button-primary, .gs-login #wp-submit {
  float: none; width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--btn) !important; color: var(--btn-ink) !important;
  font-size: 16px; font-weight: 600; text-shadow: none; box-shadow: 0 16px 30px -16px rgba(20, 5, 0, .8); cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.gs-login #wp-submit:hover { filter: brightness(1.12); }
.gs-login #wp-submit:active { transform: scale(.98); }
.gs-login #nav { margin: 18px 0 0; padding: 0; text-align: center; font-size: 14px; color: var(--soft); }
.gs-login #nav a { color: var(--soft); text-decoration: none; }
.gs-login #nav a:hover { color: #d7262b; }
.gs-login .description, .gs-login .indicator-hint { color: var(--soft); font-size: 13px; }
.gs-login #pass-strength-result { border-radius: 12px; margin-top: 8px; }

/* messages */
.gs-login #login_error, .gs-login .message, .gs-login .notice, .gs-login .success {
  margin: 0 0 16px; padding: 12px 14px; border: 0; border-radius: 14px; box-shadow: none; font-size: 14px; line-height: 1.45; color: var(--ink);
  background: rgba(34, 197, 94, .14);
}
.gs-login #login_error, .gs-login .notice-error { background: rgba(220, 38, 38, .12); color: #b91c1c; }
html.gs-dark .gs-login #login_error, html.gs-dark .gs-login .notice-error { color: #fca5a5; }
.gs-login #login_error a, .gs-login .message a { color: inherit; font-weight: 600; }

/* brand panel: wide screens only */
.gs-login-brand { display: none; }
@media (min-width: 960px) {
  body.login.gs-login { grid-template-columns: minmax(0, 1.15fr) minmax(440px, .85fr); padding: 0; }
  .gs-login-brand { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; justify-self: stretch; padding: 48px 56px; color: #fff; }
  .gs-login #login { margin: 32px; }
  .gs-login #login h1 { display: none; }
  html.gs-dark .gs-login-brand { border-right: 1px solid rgba(255, 255, 255, .06); }
}
.gs-login-brand-logo { display: flex; align-items: center; gap: 12px; }
.gs-login-mark { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.gs-login-brand-logo span { display: flex; flex-direction: column; line-height: 1; }
.gs-login-brand-logo b { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.gs-login-brand-logo b em { font-style: normal; color: #f6c21c; }
.gs-login-brand-logo small { margin-top: 6px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.gs-login-brand-copy h2 { margin: 0; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; color: #fff; }
.gs-login-brand-copy p { max-width: 460px; margin: 20px 0 26px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.gs-login-brand-copy ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gs-login-brand-copy li { padding: 9px 16px; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gs-login-brand-foot { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

@media (prefers-reduced-motion: reduce) { .gs-login #login { animation: none; } }

/* lost password: our title already explains it, so WordPress' own info box is not repeated */
.login-action-lostpassword .gs-login-title + .message, .login-action-lostpassword .gs-login-title + .notice-info,
.login-action-lostpassword #login > .message, .login-action-lostpassword #login > .notice-info { display: none; }
.login-action-lostpassword .submit, .login-action-rp .submit, .login-action-resetpass .submit { margin-top: 18px !important; }
