/*
 * Grapevine Login 
 */

:root {
  --gv-accent: #4cc9b0;
  --gv-accent-dark: #37a497;
  --gv-bg: #ffffff;
  --gv-text: #333333;
  --gv-radius: 8px;
  --gv-shadow: rgba(76, 201, 176, 0.35);
  --gv-transition: 0.25s ease;
}

*,
*::view-transition-group,
*::view-transition-image-pair,
*::view-transition-new,
*::view-transition-old {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: auto;
  /* allow window scrolling */
}

/* =========================================================
   Base
   ========================================================= */
.gv-login-body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--gv-bg);
  color: var(--gv-text);
}

.gv-login-container {
  display: flex;
  flex-direction: row-reverse;
  /* splash on the right, form on the left */
  min-height: 100vh;
  overflow: visible;
}

/* =========================================================
   Left & Right Panels
   ========================================================= */

.gv-login-left {
  /* Splash takes all remaining width after the fixed login panel */
  flex: 1 1 calc(100% - 340px);
  width: calc(100% - 340px);
  background-image: url("../../assets/images/image.webp");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  height: auto;
}

/* When no splash selected, remove background image */
.gv-no-splash {
  background-image: none !important;
}

.gv-login-panel {
  /* Fixed width for the login (LHS) with responsive calc() partner on splash */
  flex: 0 0 340px !important;
  width: 340px;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--gv-login-panel-bg, #fff);
  color: var(--gv-on-panel);
  padding: 0 15px;
  overflow: visible !important;
  height: auto !important;
}

/* =========================================================
    Responsive Layout: Tablet & Mobile
   ========================================================= */

@media (max-width: 1024px) {
  .gv-login-container {
    justify-content: center;
    /* Center login form on smaller screens */
  }

  /* Force background to match login panel on mobile to avoid white bars */
  .gv-login-body {
    background: var(--gv-login-panel-bg, #fff) !important;
  }

  .gv-login-left {
    display: none;
    /* Hide splash image on tablets and smaller */
  }

  .gv-login-panel {
    width: 100%;
    flex: 1;
    /* Take up full width */
    padding: 0 15px;
    justify-content: center;
    /* Horizontally center the form card */
    padding-top: 0;
    /* Remove top padding for login panel on mobile */
  }

  .gv-login-card {
    padding: 10px 15px 15px;
    width: 420px;
    max-width: 100%;
  }

  .gv-color-layer {
    display: none;
  }
}

/* Small screen adjustments for SSO buttons */
@media (max-width: 768px) {

  /* Use grid for predictable sizing on mobile */
  .gv-sso-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px !important;
  }

  .gv-sso-button {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    line-height: 1 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .gv-sso-button img {
    width: 22px !important;
    height: 22px !important;
  }
}

/* Very small screens - stack vertically but compact */
@media (max-width: 400px) {
  .gv-sso-buttons {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .gv-sso-button {
    height: auto !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
  }
}

/* =========================================================
   Login Card
   ========================================================= */
.gv-login-card {
  width: 100%;
  max-width: 340px;
  /* Increased from 310px to reduce outside spacing */
  padding: 15px 5px 20px;
  /* Reduced LHS/RHS padding from 10px to 5px */
  box-sizing: border-box;
  /*background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);*/
}

.gv-login-logo {
  text-align: center;
  margin-bottom: 14px;
}

/* Fixed-size logo wrapper - prevents layout shifts from different logo sizes */
.gv-logo-wrapper {
  width: 200px;
  height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Site name fallback when no logo */
.gv-site-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--gv-accent);
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gv-on-panel);
}

/* =========================================================
   Form Elements
   ========================================================= */
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.gv-field-wrapper {
  margin-bottom: 18px;
}

.gv-input-with-icon {
  position: relative;
}

.gv-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  width: 20px;
  height: 20px;
}

svg.gv-input-icon {
  display: inline-block;
  vertical-align: middle;
  fill: #6b7280;
}

/* Email input wrapper with icon */
.gv-email-icon-wrapper::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%236b7280'><path d='M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z'/></svg>");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 2;
}

/* Handle Chrome autofill background */
.gv-email-icon-wrapper input:-webkit-autofill,
.gv-email-icon-wrapper input:-webkit-autofill:hover,
.gv-email-icon-wrapper input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #e8f0fe inset;
  box-shadow: 0 0 0 1000px #e8f0fe inset;
}

/* Unified input style */
form input[type="email"],
form input[type="text"],
form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--gv-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: border-color var(--gv-transition), box-shadow var(--gv-transition);
  font-size: 15.5px;
}

/* Match textarea styling to inputs */
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--gv-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: border-color var(--gv-transition), box-shadow var(--gv-transition);
  font-size: 15px;
  resize: vertical;
}

form textarea:focus {
  outline: none;
  border-color: var(--gv-accent-focus, var(--gv-accent));
  box-shadow: 0 0 0 3px var(--gv-accent-shadow, rgba(76, 201, 176, 0.15));
}

form input[type="email"]:focus,
form input[type="text"]:focus,
form input[type="password"]:focus {
  outline: none;
  border-color: var(--gv-accent-focus, var(--gv-accent));
  box-shadow: 0 0 0 3px var(--gv-accent-shadow, rgba(76, 201, 176, 0.15));
}

/* Add left padding for inputs with icons - must come after base input styles */
.gv-input-with-icon input[type="email"],
.gv-input-with-icon input[type="text"],
.gv-input-with-icon input[type="password"] {
  padding-left: 44px;
}

/* Forgot link (suffix) */
.gv-suffix-text {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 600;
  color: var(--gv-accent);
  text-decoration: none;
  z-index: 2;
}

.gv-suffix-text:hover {
  color: var(--gv-accent-dark);
  text-decoration: underline;
}

/* Add extra right padding to password field when it has a suffix link */
.gv-input-with-icon:has(.gv-suffix-text) input[type="password"] {
  padding-right: 75px;
}

/* =========================================================
   Error States
   ========================================================= */
.gv-error {
  background-color: #ffebee;
  border-left: 4px solid #d32f2f;
  color: #c62828;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 14px;
}

/* Magic Link Error State */
.gv-login-container .gvl-magic-error,
.gvl-magic-login .gvl-magic-error {
  background: var(--gv-error-bg, #fdecea);
  color: var(--gv-error-text, #b42318);
  border: 1px solid var(--gv-error-border, #f5c2c7);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* =========================================================
   Remember / Meta Row
   ========================================================= */
.gv-login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Label + checkbox inline */
.gv-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gv-on-panel);
  margin-bottom: 16px;
}

.gv-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--gv-accent);
}

/* =========================================================
   Login Button
   ========================================================= */
.gv-login-button,
.gv-magic-button {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 1.25rem;
  background-color: var(--gv-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--gv-button-radius, 100px);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02857em;
  cursor: pointer;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: inherit;
  box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.gv-login-button:hover,
.gv-magic-button:hover {
  background-color: var(--gv-accent-dark);
  border-color: var(--gv-accent-dark);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}


/* Standardize Loading State */
.gv-login-action.is-loading,
.gv-login-button.is-loading,
.gv-magic-button.is-loading,
.gv-sso-button.is-loading {
  pointer-events: none !important;
  opacity: 0.8;
  cursor: not-allowed;
  position: relative;
}

/* Spinner logic */
.gv-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gv-spin 0.8s linear infinite;
  margin-left: 10px;
  flex-shrink: 0;
}

.is-loading .gv-spinner {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Specific button contrast for spinners */
.gv-login-button .gv-spinner,
.gv-magic-button .gv-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

.gv-sso-okta .gv-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #007dc1;
  /* Okta Blue */
}

.gv-sso-google .gv-spinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #4285F4;
}


@keyframes gv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Separator + SSO Buttons (Enhanced Size)
   ========================================================= */
.gv-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 30px 0 24px;
  color: var(--gv-on-panel);
  font-size: 16px;
  /* slightly larger */
  font-weight: 600;
  /* bold for emphasis */
  letter-spacing: 0.3px;
}

.gv-separator::before,
.gv-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dcdcdc;
}

.gv-separator:not(:empty)::before {
  margin-right: 0.75em;
}

.gv-separator:not(:empty)::after {
  margin-left: 0.75em;
}

/* --- SSO buttons --- */
.gv-sso-buttons {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  justify-content: center;
  align-items: center;
}


.gv-sso-button {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 120px !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 48px !important;
  border: 1.5px solid #ccc;
  border-radius: var(--gv-button-radius, 12px);
  background-color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gv-text);
  transition: all var(--gv-transition);
}

/* Larger icons for better visual balance */
.gv-sso-button img,
.gv-sso-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--gv-transition);
}

.gv-sso-button .gv-sso-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gv-sso-button:hover {
  background-color: #f9fffd;
  border-color: var(--gv-accent);
  transform: translateY(-1px);
  color: var(--gv-accent-dark);
}

.gv-sso-button:hover img,
.gv-sso-button:hover svg {
  transform: scale(1.1);
}

.gv-sso-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Footer Links
   ========================================================= */
.gv-signup-link {
  text-align: center;
  margin-top: 20px;
  color: var(--gv-on-panel);
}

.gv-signup-link a {
  color: var(--gv-accent);
  text-decoration: none;
  font-weight: 600;
}

.gv-signup-link a:hover {
  color: var(--gv-accent-dark);
  text-decoration: underline;
}

/* Help/Access actions under login */
.gv-help-actions {
  display: flex;
  flex-direction: column;
  /* stack links vertically */
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.gv-help-link {
  color: var(--gv-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.gv-help-link:hover {
  color: var(--gv-accent-dark);
  text-decoration: underline;
}

/* Modal styles for Help form */
.gv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.gv-modal {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 460px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 16px 18px 18px;
}

.gv-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gv-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.gv-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.gv-modal-actions {
  margin-top: 8px;
}

/* Help modal specific styles */
#gv-help-message-area {
  display: none;
  margin-bottom: 15px;
}

.gv-captcha-container {
  margin-bottom: 10px;
}

#gv-captcha-image {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  display: block;
  margin-bottom: 8px;
}

#gv-captcha-refresh {
  font-size: 12px;
  color: #4cc9b0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

#gv-help-captcha {
  text-transform: uppercase;
}

/* ======================
   Magic Login Links (HandyPlugins) – unify with site styling
   ====================== */
.gv-magiclink-box form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gv-text);
}

.gv-magiclink-box form input[type="email"],
.gv-magiclink-box form input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--gv-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: border-color var(--gv-transition), box-shadow var(--gv-transition);
  font-size: 15.5px;
  margin-bottom: 12px;
  /* mail icon */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%236b7280'><path d='M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 20px 20px;
  padding-left: 44px;
}

.gv-magiclink-box form input[type="email"]:focus,
.gv-magiclink-box form input[type="text"]:focus {
  outline: none;
  border-color: var(--gv-accent-focus, var(--gv-accent));
  box-shadow: 0 0 0 3px var(--gv-accent-shadow, rgba(76, 201, 176, 0.15));
}

.gv-magiclink-box form input[type="submit"],
.gv-magiclink-box form button[type="submit"],
.gv-magiclink-box form .button {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  background-color: var(--gv-accent);
  color: #fff;
  border: 2px solid var(--gv-accent);
  border-radius: var(--gv-button-radius, 12px);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color var(--gv-transition), box-shadow var(--gv-transition), color var(--gv-transition);
}

.gv-magiclink-box form input[type="submit"]:hover,
.gv-magiclink-box form button[type="submit"]:hover,
.gv-magiclink-box form .button:hover {
  background-color: var(--gv-accent-dark);
  border-color: var(--gv-accent-dark);
}

.gv-magiclink-box form .magic-login__field,
.gv-magiclink-box form p {
  margin: 0 0 8px;
  /* Reduced to 8px for tighter spacing */
  padding: 0;
  /* Remove any plugin padding */
}

/* Override Magic Login plugin's own padding/margins */
.gv-magiclink-box .magic-login__form {
  padding: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   Error handler
   ========================================================= */

/* Inline field errors */
.gv-field-error {
  display: block;
  color: #c62828;
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.3;
}

.gv-field-wrapper {
  margin-bottom: 22px;
  /* was 18px */
}

input:invalid {
  box-shadow: none;
  border-color: #ccc;
}

input.error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15) !important;
}

input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* =========================================================
   Server Error Feedback Animation
   ========================================================= */
#gv-server-error {
  animation: gv-fadein 0.25s ease-in-out;
  outline: none;
}

@keyframes gv-fadein {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*magic link*/
/* Small helper states for toggle */
.gv-hidden {
  display: none !important;
}

/* optional subtle fade */
.gv-toggle-wrap {
  transition: opacity .25s ease;
}

.gv-toggle-wrap[aria-hidden="true"] {
  opacity: 0;
}

.gv-toggle-wrap[aria-hidden="false"] {
  opacity: 1;
}

/* We wrap Magic Link content in same “card language” as core form */
.gv-magiclink-box {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.4;
  font-size: 15px;
  color: var(--gv-text, #333333);
  /* Fixes white-on-white text inheritance */
}

.gv-magiclink-box h2 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.gv-magiclink-box .desc {
  font-size: .9rem;
  color: #4b5563;
  margin: 0 0 1rem;
}

/* =========================================================
   Colour Test Layer (moved from template inline styles)
   ========================================================= */
.gv-color-layer {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: none
}

.gv-color-layer h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #111827
}

.gv-color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0
}

.gv-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .12)
}

.gv-color-name {
  font-size: 12px;
  color: #374151;
  min-width: 68px
}

.gv-color-hex {
  font-size: 12px;
  color: #111827
}

.gv-preview-sep {
  margin: 8px 0;
  border-top: 1px dashed #e5e7eb
}

.gv-preview-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none
}

.gv-preview-list li {
  font-size: 12px;
  color: #111827;
  margin: 2px 0
}

@media (max-width: 480px) {
  .gv-color-layer {
    top: auto;
    bottom: 12px;
    right: 12px
  }
}

/* =========================================================
   Registration Page Layout & Styles
   ========================================================= */

/* On desktop, registration should share the same two-column layout as login */
.is-register .gv-login-panel {
  justify-content: center;
  /* Center the card vertically */
  align-items: center;
  /* Center the card horizontally */
  display: flex;
  /* Enable flexbox for centering */
  padding-top: 0;
  /* Remove top padding */
}

/* Form-specific styles for registration */
.is-register .gv-login-card h1 {
  margin-bottom: 1.8rem;
}

.is-register .gv-signup-form input[type="text"],
.is-register .gv-signup-form input[type="email"],
.is-register .gv-signup-form input[type="password"] {
  padding: 12px 14px 12px 44px;
}

.is-register .gv-name-fields {
  display: flex;
  gap: 12px;
}

/* New wrapper for positioning icon relative to the input only */
.gv-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gv-field-wrapper.has-icon .gv-eye-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  height: 24px;
  width: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Eye icon visibility states */
.gv-eye-toggle .gv-eye-off {
  display: none;
}

.gv-eye-toggle.showing .gv-eye-open {
  display: none;
}

.gv-eye-toggle.showing .gv-eye-off {
  display: block;
}

@media (max-width: 920px) {

  /* On mobile, stack vertically and center */
  .gv-login-container.is-register {
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1rem;
    align-items: center;
  }

  .is-register .gv-login-left {
    display: none;
    /* Hide splash image ONLY on mobile */
  }

  .is-register .gv-login-panel {
    padding-top: 0;
  }

  .gv-color-layer {
    display: none;
  }
}

.gv-help-modal-content textarea {
  min-height: 120px;
}

.gv-help-modal-content input[type="email"] {
  padding-left: 44px;
  /* Space for the icon */
}

.gv-help-modal-close {
  position: absolute;
  top: 16px;
}

/* =========================================================
   Email Verification Page Styles
   ========================================================= */

/* Success Message */
.gv-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #155724;
  font-size: 14px;
  line-height: 1.5;
}

/* Magic Link Success State */
.gv-magic-success {
  margin-bottom: 16px;
}

.gv-magic-refresh-note {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 13px;
  opacity: 0.85;
}

/* Info Message */
.gv-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #0c5460;
  font-size: 14px;
  line-height: 1.5;
}

/* Form intro text */
.gv-form-intro {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

/* Password requirements - plain text */
.gv-password-requirements {
  margin-bottom: 20px;
  padding: 0;
}

.gv-password-requirements p {
  margin: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.gv-password-requirements ul {
  margin: 8px 0 0 20px;
  font-size: 12px;
  color: #333;
  line-height: 1.6;
}

.gv-success-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.gv-success-text {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Error Message (override existing with more detail) */
.gv-error-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.gv-error-text {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Warning Message */
.gv-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-left: 4px solid #fdcb6e;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #856404;
}

.gv-warning-title {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

.gv-warning-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Account Details Box */
.gv-verify-details {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.gv-verify-details-title {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gv-verify-detail-item {
  margin-bottom: 12px;
}

.gv-verify-detail-item:last-child {
  margin-bottom: 0;
}

.gv-verify-detail-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.gv-verify-detail-value {
  font-size: 15px;
  color: #212529;
  font-weight: 500;
}

/* =========================================================
   Character Counter
   ========================================================= */
.gv-char-counter {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}

.gv-char-counter.warning {
  color: #f59e0b;
}

/* =========================================================
   Mini Orange OAuth Widget Styling
   ========================================================= */
.gv-sso-widget-area {
  display: contents;
  /* Remove wrapper, let children flow into parent flex */
}

.gv-login-widget {
  display: contents;
  /* Remove wrapper, let children flow into parent flex */
}

/* Style Mini Orange OAuth links to match SSO buttons */
.gv-login-widget a {
  flex: 0 0 auto !important;
  width: 145px !important;
  min-width: 145px !important;
  max-width: 145px !important;
  white-space: nowrap !important;
  text-align: center !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 48px !important;
  border: 1.5px solid #ccc;
  border-radius: var(--gv-radius);
  background-color: #fff;
  cursor: pointer;
  font-size: 0 !important;
  /* Hide original text */
  font-weight: 600;
  color: var(--gv-text);
  text-decoration: none;
  transition: all var(--gv-transition);
  box-sizing: border-box !important;
}

/* Show "Google" text instead */
.gv-login-widget a::after {
  content: "Google";
  font-size: 13px;
  font-weight: 600;
  color: var(--gv-text);
}

.gv-login-widget a:hover {
  background-color: #f9fffd;
  border-color: var(--gv-accent);
  transform: translateY(-1px);
  color: var(--gv-accent-dark);
}

.gv-login-widget a:active {
  transform: translateY(0);
}

/* Google logo styling in Mini Orange button */
.gv-google-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .gv-login-widget a {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
  }
}

/* Debug box for temporary logout link */
.gv-debug-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  padding: 20px;
  border: 2px solid #f00;
  z-index: 9999;
}

.gv-debug-box a {
  color: #f00;
  font-weight: bold;
}

.gv-refresh-button {
  margin-top: 16px;
  padding: 10px 18px;
  background: var(--gv-accent);
  color: #fff;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.gv-refresh-button:hover {
  opacity: 0.9;
}

.gv-resend-line {
  margin-top: 16px;
  font-size: 14px;
  color: #444;
}

.gv-resend-line a {
  color: var(--gv-accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.gv-magic-expired-btn {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  background-color: var(--gv-accent);
  color: #fff;
  border: 2px solid var(--gv-accent);
  border-radius: var(--gv-radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 20px;
  transition:
    background-color var(--gv-transition),
    color var(--gv-transition);
}

.gv-magic-expired-btn:hover {
  background-color: var(--gv-accent-dark);
  border-color: var(--gv-accent-dark);
}

/* =========================================================
   Resend Verification Link
   ========================================================= */
.gv-resend-link {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gv-text);
}

.gv-resend-link p {
  margin: 0;
  line-height: 1.5;
}

.gv-resend-link a {
  color: var(--gv-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--gv-transition);
}

.gv-resend-link a:hover {
  color: var(--gv-accent-dark);
  text-decoration: underline;
}

/* =========================================================
   Resend Verification Form
   ========================================================= */
.gv-resend-form {
  width: 100%;
}

.gv-form-description {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

.gv-resend-form .gv-field-wrapper {
  margin-bottom: 18px;
}

.gv-resend-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.gv-resend-form input[type="email"],
.gv-resend-form input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--gv-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: border-color var(--gv-transition), box-shadow var(--gv-transition);
  font-size: 15.5px;
}

.gv-resend-form input[type="email"]:focus,
.gv-resend-form input[type="password"]:focus {
  outline: none;
  border-color: var(--gv-accent-focus, var(--gv-accent));
  box-shadow: 0 0 0 3px var(--gv-accent-shadow, rgba(76, 201, 176, 0.15));
}

#gv-back-to-signup {
  text-align: center;
  margin-top: 20px;
}

#gv-back-to-signup a {
  color: var(--gv-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--gv-transition);
}

#gv-back-to-signup a:hover {
  color: var(--gv-accent-dark);
  text-decoration: underline;
}

/* Force icon to remain when Chrome shows autocomplete / autofill */
.gv-input-with-icon input:-webkit-autofill,
.gv-input-with-icon input:-webkit-autofill:hover,
.gv-input-with-icon input:-webkit-autofill:focus {
  padding-left: 44px !important;
  -webkit-text-fill-color: inherit;
}

.gv-input-with-icon input::-webkit-input-placeholder {
  opacity: 1 !important;
}

.gv-input-with-icon input {
  padding-left: 44px !important;
}