/* grand digital login screen – managed in Theme Options (gd-theme-options).
   --login-bg is randomised per request by the theme (app/setup.php). */

@font-face {
  font-display: swap;
  font-family: 'Hind';
  font-style: normal;
  font-weight: 400;
  src: url('/app/themes/clients/resources/fonts/hind-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Hind';
  font-style: normal;
  font-weight: 500;
  src: url('/app/themes/clients/resources/fonts/hind-v18-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Hind';
  font-style: normal;
  font-weight: 600;
  src: url('/app/themes/clients/resources/fonts/hind-v18-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Hind';
  font-style: normal;
  font-weight: 700;
  src: url('/app/themes/clients/resources/fonts/hind-v18-latin-700.woff2') format('woff2');
}


:root {
  --gd-helm: #cfff03;
  --gd-lagoon: #56b099;
  --gd-gold: #907b4f;
  --gd-red: #ff5c35;
  --gd-grey-200: #dedede;
  --gd-grey-900: #212b2f;
  --gd-glass: rgb(255 255 255 / 0.08);
  --gd-line: rgb(255 255 255 / 0.16);
  --gd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --login-logo: url('/app/themes/clients/resources/images/logo.png');
  --login-bg: url('https://unsplash.it/1920/1080?design');
}

body.login {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--gd-grey-900);
  color: #fff;
  font-family: "Hind", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
}

/* Background photo (set per request via --login-bg) with a slow zoom */
body.login::before,
body.login::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
}

body.login::before {
  background: url('https://picsum.photos/1920/1080') center / cover no-repeat;
  animation: gd-zoom 30s ease-in-out infinite alternate;
}

body.login::after {
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgb(207 255 3 / 0.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgb(86 176 153 / 0.35), transparent 45%),
    linear-gradient(135deg, rgb(33 43 47 / 0.94), rgb(33 43 47 / 0.72));
}

/* Card */
#login {
  width: min(400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8vh 0 32px;
}

.login h1,
.login form,
.login #nav,
.login #backtoblog,
.login .message,
.login .notice,
.login #login_error,
.language-switcher {
  animation: gd-rise 0.8s var(--gd-ease) both;
}

.login h1 { animation-delay: 0.05s; }
.login form { animation-delay: 0.15s; }
.login #nav { animation-delay: 0.3s; }
.login #backtoblog { animation-delay: 0.35s; }
.language-switcher { animation-delay: 0.4s; }

.login h1 a {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  background: var(--login-logo) center / contain no-repeat;
  transition: transform 0.6s var(--gd-ease), filter 0.6s var(--gd-ease);
}

.login h1 a:hover,
.login h1 a:focus-visible {
  transform: rotate(-12deg) scale(1.08);
  filter: drop-shadow(0 0 18px rgb(207 255 3 / 0.45));
}

.login form {
  margin: 0;
  padding: 32px 28px;
  border: 1px solid var(--gd-line);
  border-radius: 24px;
  background: var(--gd-glass);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.login label {
  color: var(--gd-grey-200);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  margin-top: 6px;
  padding: 10px 16px;
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  background: rgb(0 0 0 / 0.25);
  color: #fff;
  font-size: 18px;
  box-shadow: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
  border-color: var(--gd-helm);
  background: rgb(0 0 0 / 0.35);
  box-shadow: 0 0 0 4px rgb(207 255 3 / 0.18);
  outline: none;
}

/* Password visibility toggle */
.login .button.wp-hide-pw {
  height: calc(100% - 6px);
  margin-top: 3px;
  color: var(--gd-grey-200);
}

.login .button.wp-hide-pw:focus {
  border-color: var(--gd-helm);
  box-shadow: none;
}

.login .forgetmenot label {
  font-size: 14px;
}

.login input[type="checkbox"] {
  border-color: var(--gd-line);
  border-radius: 6px;
  background: rgb(0 0 0 / 0.25);
}

.login input[type="checkbox"]:checked::before {
  filter: brightness(0) invert(1);
}

.login .submit {
  margin-top: 8px;
}

.login .button-primary,
.login #wp-submit {
  float: right;
  min-height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gd-helm);
  color: var(--gd-grey-900);
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: 0 10px 30px rgb(207 255 3 / 0.25);
  transition: transform 0.3s var(--gd-ease), box-shadow 0.3s var(--gd-ease), background 0.3s;
}

.login .button-primary:hover,
.login .button-primary:focus {
  background: #fff;
  color: var(--gd-grey-900);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgb(207 255 3 / 0.35);
}

.login .button-primary:focus-visible {
  outline: 2px solid var(--gd-helm);
  outline-offset: 3px;
}

/* Links under the card */
.login #nav,
.login #backtoblog {
  margin: 20px 0 0;
  padding: 0 8px;
  text-align: center;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-link {
  color: var(--gd-grey-200);
  text-decoration: none;
  transition: color 0.2s;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-link:hover {
  color: var(--gd-helm);
}

/* Messages */
.login .message,
.login .notice,
.login #login_error {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--gd-line);
  border-left: 4px solid var(--gd-helm);
  border-radius: 16px;
  background: var(--gd-glass);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.login #login_error,
.login .notice-error {
  border-left-color: var(--gd-red);
}

.login .message a,
.login #login_error a {
  color: var(--gd-helm);
}

/* Language switcher */
.language-switcher {
  margin-top: 16px;
}

.language-switcher label .dashicons,
.language-switcher .dashicons-translation::before {
  color: var(--gd-grey-200);
}

.language-switcher select {
  border-color: var(--gd-line);
  border-radius: 10px;
  background-color: rgb(0 0 0 / 0.25);
  color: #fff;
}

.language-switcher .button {
  border-color: var(--gd-line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
}

.language-switcher .button:hover {
  border-color: var(--gd-helm);
  color: var(--gd-helm);
}

.login .privacy-policy-page-link {
  margin-top: 24px;
}

#login h2.gd-gate-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 20px;
    color: #fff !important;
    padding: 0;
}

#loginform p.gd-gate-message {
    border: none;
    padding: 0;
    margin: 0 0 20px;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.6;
    background: none;
    box-shadow: none;
}

@keyframes gd-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes gd-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  body.login::before,
  .login *,
  .language-switcher {
    animation: none !important;
    transition: none !important;
  }
}