/* ===================================================================
   Woodside Bible Church - MinistryPlatform OAuth Styling
   Clean, Full-Width Design with Liquid Glass Header
   =================================================================== */

/* Font Awesome - Direct @font-face rules to avoid CSP issues */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2)
    format("woff2");
}

/* Montserrat font - Direct @font-face rules to avoid CSP issues */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf)
    format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf)
    format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf)
    format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf)
    format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v31/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr70w-.ttf)
    format("truetype");
}

/* ===================================================================
   CSS Variables - Woodside Branding
   =================================================================== */
:root {
  --woodside-green: #61bc47;
  --woodside-blue: #1c2b39;
  --woodside-border: #e5e7eb;
}

/* ===================================================================
   Global Resets & Base Styles
   =================================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background: #ffffff !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
input,
button,
select,
textarea {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

h1 {
  text-transform: lowercase !important;
  font-weight: 700 !important;
  color: var(--woodside-blue) !important;
  font-size: 3rem !important;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  letter-spacing: -0.02em !important;
}

h2 {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  margin-bottom: 36px !important;
  margin-top: 0 !important;
  line-height: 1.6 !important;
}

/* ===================================================================
   Liquid Glass Header Effect
   =================================================================== */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px !important;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(20px) saturate(300%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Ensure header content is above the glass background */
header > * {
  position: relative;
  z-index: 1;
}

/* Logo styling */
header .logo {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 40px !important;
  height: 40px !important;
  margin-left: 24px !important;
  transition: filter 0.2s ease;
}

header .logo:hover {
  filter: brightness(1.1);
}

/* Language selector styling */
.language-selector-container {
  margin-right: 24px !important;
  display: flex !important;
  align-items: center !important;
}

header .language-selector-container {
  position: relative;
  top: unset;

  right: unset;
  width: unset;
}

.language-selector {
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: rgba(255, 255, 255, 0.6) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0 !important;
  padding: 10px 14px;
  color: var(--woodside-blue) !important;
  transition: all 0.15s ease;
  cursor: pointer;
  height: 40px !important;
}

.language-selector:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: var(--woodside-green) !important;
}

.language-selector:focus {
  outline: 2px solid var(--woodside-green) !important;
  outline-offset: 2px;
  background: white !important;
}

/* ===================================================================
   Main Content Area - FULL WIDTH, NO CARD
   =================================================================== */
:is(.content) {
  padding-top: 100px !important;
  padding-bottom: 60px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: calc(100vh - 125px) !important;
  background: #ffffff !important;
  width: min(600px, 95%) !important;
  max-width: unset !important;
}

#mainView {
  width: 100% !important;
  max-width: unset !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Login container - NO CARD STYLING */
.login {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 40px 24px !important;
  max-width: 520px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border: none !important;
}

.login h1 {
  text-align: center !important;
}

.login h2 {
  text-align: center !important;
}

/* ===================================================================
   Form Styling
   =================================================================== */
.login-form,
.enter-code {
  width: 100% !important;
}

/* Input labels */
.input-with-label {
  display: block !important;
  margin-bottom: 20px !important;
}

.input-with-label > div {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: var(--woodside-blue) !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.03em !important;
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="phone"] {
  width: 100% !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  border: 1px solid var(--woodside-border) !important;
  border-radius: 0 !important;
  background: white !important;
  transition: all 0.15s ease !important;
  color: #333 !important;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="phone"]:hover {
  border-color: #cbd5e0 !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus {
  outline: none !important;
  border-color: var(--woodside-green) !important;
  box-shadow: 0 0 0 3px rgba(97, 188, 71, 0.1) !important;
}

/* Checkbox styling */
.checkbox-with-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
  font-size: 0.9375rem !important;
  color: #333 !important;
  cursor: pointer;
}

.checkbox-with-label input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border: 1px solid var(--woodside-border) !important;
  cursor: pointer;
  accent-color: var(--woodside-green) !important;
  flex-shrink: 0;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: white !important;
  position: relative !important;
}

/* Custom checkbox checkmark */
.checkbox-with-label input[type="checkbox"]:checked {
  background: var(--woodside-green) !important;
  border-color: var(--woodside-green) !important;
}

.checkbox-with-label input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 2px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

:is(.remember-me-check) {
  border-radius: 0 !important;
}

section.content .checkbox-with-label span {
  top: 0 !important;
}

/* Radio button styling - Custom appearance matching checkboxes */
input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  -moz-border-radius: 50% !important;
  border: 1px solid var(--woodside-border) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background: white !important;
  position: relative !important;
  margin-right: 8px !important;
}

/* Radio button checked state */
input[type="radio"]:checked {
  background: var(--woodside-green) !important;
  border-color: var(--woodside-green) !important;
}

/* Radio button inner circle when checked */
input[type="radio"]:checked::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: white !important;
}

/* Hide the actual radio buttons */
#codeFlowModeRadioEmail,
#codeFlowModeRadioText {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Card-style radio button containers with liquid glass effect - ONLY for send code flow */
#sendCodeFlowContainer label.input-with-label > div {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  cursor: pointer !important;
  margin-bottom: 16px !important;
  padding: 20px 24px !important;
  min-height: 72px !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 !important;
  background: linear-gradient(
    135deg,
    rgba(97, 188, 71, 0.04),
    rgba(97, 188, 71, 0.08)
  ) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.15s ease !important;
}

/* Card hover state */
#sendCodeFlowContainer label.input-with-label > div:hover {
  transform: scale(1.02) !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Card active/tap state */
#sendCodeFlowContainer label.input-with-label > div:active {
  transform: scale(0.98) !important;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Card checked state - brighter green tint with enhanced glass effect */
#sendCodeFlowContainer
  label.input-with-label:has(#codeFlowModeRadioEmail:checked)
  > div,
#sendCodeFlowContainer
  label.input-with-label:has(#codeFlowModeRadioText:checked)
  > div {
  border-color: rgba(97, 188, 71, 0.4) !important;
  background: linear-gradient(
    135deg,
    rgba(97, 188, 71, 0.15),
    rgba(97, 188, 71, 0.22)
  ) !important;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(97, 188, 71, 0.15) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
}

/* Position cards side-by-side using absolute positioning */
#sendCodeFlowContainer {
  position: relative !important;
  padding-top: 88px !important; /* Reserve space for absolutely positioned cards */
}

/* Ensure label containers have consistent spacing */
#codeFlowEmailContainer,
#codeFlowTextContainer {
  display: block !important;
  margin-bottom: 0px !important;
}

/* Position card divs absolutely, side by side within parent container */
#codeFlowEmailContainer > div {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: calc(50% - 8px) !important;
  margin-bottom: 0 !important;
}

#codeFlowTextContainer > div {
  position: absolute !important;
  top: 0 !important;
  left: calc(50% + 8px) !important;
  width: calc(50% - 8px) !important;
  margin-bottom: 0 !important;
}

/* Add icons inside input fields */
#codeFlowEmail,
#codeFlowText {
  padding: 16px 16px 16px 50px !important;
  height: 56px !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  background-size: 24px 24px !important;
  margin-top: 16px !important;
}

/* Email input icon */
#codeFlowEmail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%231c2b39' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") !important;
}

/* Phone input icon */
#codeFlowText {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%231c2b39' d='M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z'/%3E%3C/svg%3E") !important;
}

/* Placeholder text styling for send code flow inputs */
#codeFlowEmail::placeholder,
#codeFlowText::placeholder {
  color: #999 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

#codeFlowEmail::-webkit-input-placeholder,
#codeFlowText::-webkit-input-placeholder {
  color: #999 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

#codeFlowEmail::-moz-placeholder,
#codeFlowText::-moz-placeholder {
  color: #999 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Hide input fields when their radio button is not checked */
#codeFlowEmailContainer:has(#codeFlowModeRadioEmail:not(:checked))
  #codeFlowEmail {
  display: none !important;
}

#codeFlowTextContainer:has(#codeFlowModeRadioText:not(:checked)) #codeFlowText {
  display: none !important;
}

/* Add inline SVG icons to card labels - ONLY for send code flow */
#sendCodeFlowContainer label.input-with-label > div span {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  font-size: 1.125rem !important;
  font-weight: 600 !important;
  color: var(--woodside-blue) !important;
  letter-spacing: 0.01em !important;
}

#sendCodeFlowContainer label.input-with-label > div span::before {
  content: "" !important;
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  margin-right: 16px !important;
  flex-shrink: 0 !important;
  background-size: 28px 28px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

/* Email icon */
#codeFlowEmailContainer > div span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2361bc47' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") !important;
}

/* Phone icon */
#codeFlowTextContainer > div span::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%2361bc47' d='M16 64C16 28.7 44.7 0 80 0H304c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H80c-35.3 0-64-28.7-64-64V64zM144 448c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16s-7.2-16-16-16H160c-8.8 0-16 7.2-16 16zM304 64H80V384H304V64z'/%3E%3C/svg%3E") !important;
}

/* ===================================================================
   Button Styling - Match Woodside Website
   =================================================================== */
button {
  text-transform: uppercase !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Transition for buttons (only on hover-capable devices) */
@media only screen and (hover: hover) {
  button {
    transition: background 0.3s, color 0.3s, border-color 0.3s !important;
  }
}

/* Ensure button text has consistent line-height */
button span {
  line-height: 1em !important;
}

/* Primary button (Log In) - GREEN */
button.primary,
.login-form button[type="submit"],
.login button:not(.secondary) {
  width: 100% !important;
  min-width: 200px !important;
  padding: 15px 10px !important;
  background: #62bb46 !important;
  color: #fff !important;
  border: 3px solid #62bb46 !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1em !important;
  box-shadow: none !important;
  outline: 0 !important;
  min-height: 50px !important;
}

button.primary:hover,
.login-form button[type="submit"]:hover,
.login button:not(.secondary):hover {
  background: var(--woodside-blue) !important;
  border-color: var(--woodside-blue) !important;
}

button.primary:active,
.login-form button[type="submit"]:active,
.login button:not(.secondary):active {
  background: var(--woodside-blue) !important;
  border-color: var(--woodside-blue) !important;
}

/* Secondary button - BLUE */
button.secondary {
  width: 100% !important;
  min-width: 200px !important;
  padding: 15px 10px !important;
  background: var(--woodside-blue) !important;
  color: #fff !important;
  border: 3px solid var(--woodside-blue) !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1em !important;
  box-shadow: none !important;
  outline: 0 !important;
  min-height: 50px !important;
}

button.secondary:hover {
  background: #78828a !important;
  border-color: #78828a !important;
}

button.secondary:active {
  background: #78828a !important;
  border-color: #78828a !important;
}

/* ===================================================================
   Form Actions Section
   =================================================================== */
.form-actions {
  margin-top: 24px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em;
  flex-direction: row-reverse;
}

.form-actions > * {
  flex: 1 !important;
}

.standalone-label {
  display: block;
  text-align: center !important;
  margin: 16px 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #999 !important;
}

/* Hide OR between buttons */
#sendCodeToggleContainer .standalone-label,
#loginFlowToggleContainer .standalone-label {
  display: none !important;
}

#sendCodeToggleContainer,
#loginFlowToggleContainer {
  width: 100%;
}

/* ===================================================================
   Account Actions (Links)
   =================================================================== */
.account-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e5e7eb !important;
  font-size: 0.9375rem !important;
}

.account-actions a {
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease;
  color: var(--woodside-blue) !important;
}

.account-actions a:hover {
  color: var(--woodside-green) !important;
  text-decoration: underline !important;
}

/* ===================================================================
   Footer Styling - Match Header Glass Effect
   =================================================================== */
footer {
  position: relative !important;
  background: transparent !important;
  padding: 60px 24px !important;
  margin-top: auto !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 125px;
}

/* Glass background effect matching header */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  position: relative !important;
  z-index: 1 !important;
  max-width: 540px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

footer .footer-content > * {
  text-align: center !important;
  width: 100% !important;
}

.footer-content a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 8px !important;
  text-decoration: none !important;
  color: var(--woodside-blue) !important;
  transition: color 0.2s ease;
  font-weight: 600 !important;
}

.footer-content a:hover {
  color: var(--woodside-green) !important;
}

.powered-by {
  font-size: 0.6875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 600 !important;
  color: #999 !important;
  margin-bottom: 8px !important;
}

.copyright {
  margin-top: 16px !important;
  font-size: 0.75rem !important;
  color: #666 !important;
}

footer .powered-by {
  top: 0;
  margin-bottom: 0 !important;
}

/* Ensure body/html fill viewport to push footer down */
html {
  height: 100% !important;
}

body {
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.content {
  flex: 1 !important;
}

/* ===================================================================
   External Providers (if applicable)
   =================================================================== */
.external-providers {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

/* Hide external providers section when it has no children */
#externalProvidersContainer.external-providers:not(:has(*)) {
  display: none !important;
}

/* Hide "Or Log In With" label when external providers container has no children */
/* Use same :not(:has(*)) pattern that works for the container */
#externalProvidersOrSignInWith:has(+ #externalProvidersContainer:not(:has(*))) {
  display: none !important;
}

/* Try general sibling combinator in case they're not adjacent */
#externalProvidersOrSignInWith:has(~ #externalProvidersContainer:not(:has(*))) {
  display: none !important;
}

/* ===================================================================
   Loading/Block UI
   =================================================================== */
#blockUi {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ===================================================================
   Error/Message Styling
   =================================================================== */
.message {
  background: #fef2f2 !important;
  border-left: 4px solid #dc2626 !important;
  border-radius: 0 !important;
  padding: 16px 18px !important;
  margin-bottom: 28px !important;
  color: #991b1b !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
}

.message.success {
  background: #f0fdf4 !important;
  border-left-color: var(--woodside-green) !important;
  color: #166534 !important;
}

/* ===================================================================
   Mobile Responsiveness
   =================================================================== */
@media (max-width: 640px) {
  header .logo {
    margin-left: 16px !important;
  }

  .language-selector-container {
    margin-right: 16px !important;
  }

  .content {
    padding-top: 120px !important;
  }

  .login {
    padding: 32px 24px !important;
  }

  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 0.9375rem !important;
    margin-bottom: 28px !important;
  }

  .form-actions {
    flex-direction: column;
  }

  .account-actions {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
  }

  .account-action-spacer {
    display: none !important;
  }

  button.primary,
  button.secondary,
  .login-form button[type="submit"],
  .login button:not(.secondary) {
    padding: 15px 10px !important;
  }

  /* Stack cards vertically on mobile */
  #sendCodeFlowContainer {
    padding-top: 192px !important; /* Space for two stacked cards (72px each + 32px gap + 16px bottom) */
  }

  #codeFlowEmailContainer > div {
    left: 0 !important;
    width: 100% !important;
    top: 0 !important;
  }

  #codeFlowTextContainer > div {
    left: 0 !important;
    width: 100% !important;
    top: 104px !important; /* Position below first card (72px + 32px gap) */
  }
}

/* ===================================================================
   Animations
   =================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login {
  animation: fadeIn 0.5s ease-out;
}

/* ===================================================================
   Utility Classes
   =================================================================== */
.inactive {
  opacity: 0.5 !important;
  pointer-events: none !important;
}

/* Hide reCAPTCHA badge - optional */
.grecaptcha-badge {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.grecaptcha-badge:hover {
  opacity: 1;
}
