/**
 * Questionnaire Styles
 * Goodness of Fit Assessment Form
 * Unit System: rem for typography/spacing, vh/vw for viewport-based sizing
 */

/* Layout */
.questionnaire-wrapper {
  min-height: 100vh;
  background: #f9fafb;
}

/* Progress Header - sticky on desktop, scrolls away on mobile */
.progress-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f9fafb;
  border-bottom: none;
  padding: 1.5rem 0;
  box-shadow: 
    0 0.5rem 1rem rgba(163, 177, 198, 0.3),
    0 -0.125rem 0.5rem rgba(255, 255, 255, 0.5);
}

/* Placeholder - only used on mobile */
.progress-header-placeholder {
  display: none;
}

/* Mobile: header scrolls away and stays hidden */
@media (max-width: 48rem) {
  .progress-header {
    position: relative;
    transition: transform 0.3s ease;
  }
  
  /* When header is fixed after scrolling past - positioned OFF-SCREEN */
  .progress-header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
  }
  
  .progress-header-placeholder.active {
    display: block;
  }
}

.progress-container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.progress-title-group {
  margin-bottom: 1.5rem;
}

.progress-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0 0 0.25rem 0;
}


/* Progress Bars */
.progress-bars {
  display: flex;
  gap: 1.5rem;
}

/* Mobile Section Progress (hidden on desktop) */
.mobile-section-progress {
  display: none;
}

.progress-bar-item {
  flex: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
}

.progress-percent {
  font-size: 0.75rem;
  color: var(--color-gray-dark);
}

.progress-shell {
  height: 0.5rem;
  background: #f9fafb;
  border-radius: 62.5rem;
  overflow: hidden;
  border: none;
  box-shadow: 
    inset 0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.4),
    inset -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.7);
}

.progress-fill {
  height: 100%;
  width: 0;
  transition: width 0.3s ease-out;
  border-radius: 62.5rem;
}

/* Main Content */
.questionnaire-main {
  max-width: 75rem;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Navigation Buttons */
.btn-section-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.btn-section-nav:hover {
  box-shadow: 
    0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.4),
    -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.8);
}

.nav-arrow {
  font-size: 1.125rem;
  font-weight: bold;
}

/* Sections */
.questionnaire-section {
  display: none;
}

.questionnaire-section.active {
  display: block;
}

/* New Section Header Layout */
.section-header-new {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-header-left {
  justify-self: start;
}

.section-header-center {
  text-align: center;
  justify-self: center;
}

.section-header-right {
  justify-self: end;
}

.section-title-new {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0 0 0.5rem 0;
}

/* Old section header (kept for backwards compatibility) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0;
}

.section-description {
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  margin: 0.5rem 0 0 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--color-secondary-yellow);
  color: var(--color-primary-blue);
  border-radius: 62.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

/* Card */
.card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* About Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 1.5rem;
}

.form-section-header {
  grid-column: 1 / -1;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.125rem solid var(--color-gray-light);
}

.form-section-header:first-child {
  margin-top: 0;
}

.form-section-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black);
}

.form-input {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  background: #f9fafb;
  transition: box-shadow 0.3s ease;
  box-shadow: 
    inset 0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    inset -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.form-input:focus {
  outline: none;
  box-shadow: 
    inset 0.3125rem 0.3125rem 0.625rem rgba(163, 177, 198, 0.4),
    inset -0.3125rem -0.3125rem 0.625rem rgba(255, 255, 255, 0.8);
}

.form-input.error {
  border: 0.125rem solid #ef4444;
  box-shadow: 0 0.125rem 0.5rem rgba(239, 68, 68, 0.15);
}

.form-group.error {
  animation: shake 0.5s ease-in-out;
}

.consent-group {
  grid-column: 1 / -1;
}

.consent-label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.consent-label input[type="checkbox"].error {
  outline: 0.125rem solid #ef4444;
  outline-offset: 0.125rem;
}

/* Trait Navigation */
.trait-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 1rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
}

.trait-nav-btn {
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.trait-nav-btn:hover {
  box-shadow: 
    0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.4),
    -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.8);
}

.trait-nav-btn.active {
  background: var(--color-primary-blue);
  color: var(--color-white);
  box-shadow: 
    inset 0.1875rem 0.1875rem 0.375rem rgba(0, 0, 0, 0.2),
    inset -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.1),
    0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3);
}

.trait-nav-btn.complete::after {
  content: '✓';
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-secondary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.trait-nav-btn.error {
  animation: shake 0.5s ease-in-out;
  border-color: #ef4444;
  box-shadow: 0 0.125rem 0.5rem rgba(239, 68, 68, 0.15);
}

/* Trait Card */
.trait-card {
  display: none;
}

.trait-card.active {
  display: block;
}

.trait-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.125rem solid var(--color-gray-light);
}

.trait-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary-blue);
  margin: 0;
}

.trait-badge {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  background: var(--color-secondary-yellow);
  color: var(--color-black);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 
    0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.3),
    -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.7);
}

.trait-questions {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Question Item */
.question-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-item.error {
  animation: shake 0.5s ease-in-out;
}

.question-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
  margin: 0;
}

/* Error state for question items */
.question-item.error .options-grid {
  border: 0.125rem solid #ef4444;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 0.125rem 0.5rem rgba(239, 68, 68, 0.15);
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-0.5rem); }
  20%, 40%, 60%, 80% { transform: translateX(0.5rem); }
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.option-label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.option-label:hover {
  box-shadow: 
    0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.4),
    -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.8);
}

.option-label:has(.option-input:checked) {
  background: var(--color-neutral-peach);
  box-shadow: 
    inset 0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.3),
    inset -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.5),
    0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3);
}

.option-input {
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.option-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-black);
}

/* Section Actions */
.section-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 0.125rem solid var(--color-gray-light);
}

/* Buttons */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-next {
  background: var(--color-primary-blue);
  color: var(--color-white);
  margin-left: auto;
  box-shadow: 
    0.375rem 0.375rem 0.75rem rgba(163, 177, 198, 0.4),
    -0.125rem -0.125rem 0.5rem rgba(255, 255, 255, 0.1);
}

.btn-next:hover {
  background: var(--color-secondary-blue);
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.5),
    -0.1875rem -0.1875rem 0.625rem rgba(255, 255, 255, 0.2);
  transform: translateY(-0.125rem);
}

.btn-prev {
  background: #f9fafb;
  color: var(--color-primary-blue);
  border: none;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.btn-prev:hover {
  box-shadow: 
    0.1875rem 0.1875rem 0.375rem rgba(163, 177, 198, 0.4),
    -0.1875rem -0.1875rem 0.375rem rgba(255, 255, 255, 0.8);
}

.btn-submit {
  background: var(--color-primary-orange);
  color: var(--color-white);
  margin-left: auto;
  box-shadow: 
    0.375rem 0.375rem 0.75rem rgba(163, 177, 198, 0.4),
    -0.125rem -0.125rem 0.5rem rgba(255, 255, 255, 0.1);
}

.btn-submit:hover {
  background: var(--color-secondary-yellow);
  color: var(--color-black);
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.5),
    -0.1875rem -0.1875rem 0.625rem rgba(255, 255, 255, 0.2);
  transform: translateY(-0.125rem);
}

/* Badge visibility classes */
.mobile-badge {
  display: none;
}

.desktop-badge {
  display: inline-flex;
}

/* Responsive - rem-based breakpoints */
@media (max-width: 48rem) {
  /* Hide header progress bars on mobile */
  .progress-bars {
    display: none;
  }
  
  /* Show mobile section progress bar */
  .mobile-section-progress {
    display: block;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 20rem;
  }

  /* Restructure section header for mobile */
  .section-header-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .section-header-left {
    order: -1;
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .section-header-center {
    width: 100%;
  }

  .section-header-right {
    display: none;
  }

  /* Show mobile badge, hide desktop badge */
  .mobile-badge {
    display: inline-flex;
  }

  .desktop-badge {
    display: none;
  }

  .section-title-new {
    font-size: 1.5rem;
  }

  .btn-section-nav {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .section-badge {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Hide trait navigation on mobile */
  .trait-navigation {
    display: none;
  }

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

  .btn-next, .btn-submit {
    margin-left: 0;
  }
}

@media (max-width: 37.5rem) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* Report Loading Animation Overlay - vh/vw for viewport */
.report-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(253, 250, 247, 0.98);
  backdrop-filter: blur(0.5rem);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.report-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  max-width: 25rem;
  text-align: center;
}

.report-loading-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-blue);
  margin: 0;
}

.report-loading-subtitle {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.report-loading-svg {
  margin: 1.5rem 0;
}

.report-loading-microcopy {
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  color: #999;
  margin: 0;
  font-style: italic;
}

@media (max-width: 40rem) {
  .progress-container {
    padding: 0 1rem;
  }

  .questionnaire-main {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .section-header-new {
    gap: 0.5rem;
  }

  .section-title-new {
    font-size: 1.25rem;
  }

  .section-description {
    font-size: 0.8125rem;
  }

  .btn-section-nav {
    padding: 0.5rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .nav-arrow {
    font-size: 1rem;
  }

  .section-badge {
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
  }

  .report-loading-container {
    padding: 1.5rem;
  }

  .report-loading-title {
    font-size: 1.25rem;
  }

  .report-loading-subtitle {
    font-size: 0.8125rem;
  }

  .report-loading-svg {
    width: 11.25rem;
    height: 8.75rem;
  }
}

/* ============================================================================
   Login Modal Overlay
   ============================================================================ */

.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(0.625rem);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-modal-overlay.active {
  opacity: 1;
}

.login-modal-container {
  width: 90%;
  max-width: 31.25rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #f9fafb;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 
    0.5rem 0.5rem 1rem rgba(163, 177, 198, 0.4),
    -0.5rem -0.5rem 1rem rgba(255, 255, 255, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal-container {
  transform: scale(1);
}

/* Login Modal Header */
.login-modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.login-modal-logo img {
  height: 2.5rem;
  width: auto;
}

.login-modal-logo-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary-blue);
}

.login-modal-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  margin-bottom: 0.5rem;
}

.login-modal-subtitle {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--text-secondary, #4a5568);
  margin-bottom: 0;
}

/* Auth Sections (copied from login.html styles) */
.descope-modal-container {
  margin-top: 1.5rem;
}

.auth-section {
  margin-bottom: 1.5rem;
}

.auth-section-title {
  font-family: var(--font-primary);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
  margin-bottom: 1.25rem;
  text-align: center;
}

.otp-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  box-shadow: 
    inset 0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    inset -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.otp-toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary, #4a5568);
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.otp-toggle-btn svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.otp-toggle-btn:hover {
  color: var(--color-primary-blue);
}

.otp-toggle-btn.active {
  background: #f9fafb;
  color: var(--color-primary-blue);
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

.form-input {
  padding: 0.875rem 1rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  background: #f9fafb;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 
    inset 0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    inset -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  box-shadow: 
    inset 0.375rem 0.375rem 0.75rem rgba(163, 177, 198, 0.4),
    inset -0.375rem -0.375rem 0.75rem rgba(255, 255, 255, 0.8);
}

.btn {
  padding: 0.875rem 1.5rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-primary-blue);
  color: white;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 
    0.375rem 0.375rem 0.75rem rgba(163, 177, 198, 0.5),
    -0.375rem -0.375rem 0.75rem rgba(255, 255, 255, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    inset 0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    inset -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.7);
}

.btn-secondary {
  background: #f9fafb;
  color: var(--color-primary-blue);
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.4),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  box-shadow: 
    0.125rem 0.125rem 0.25rem rgba(163, 177, 198, 0.3),
    -0.125rem -0.125rem 0.25rem rgba(255, 255, 255, 0.7);
}

.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  background: white;
  color: #3c4043;
  border: 1px solid #dadce0;
  box-shadow: 
    0.25rem 0.25rem 0.5rem rgba(163, 177, 198, 0.3),
    -0.25rem -0.25rem 0.5rem rgba(255, 255, 255, 0.8);
}

.btn-oauth:hover {
  background: #f8f9fa;
  box-shadow: 
    0.375rem 0.375rem 0.75rem rgba(163, 177, 198, 0.4),
    -0.375rem -0.375rem 0.75rem rgba(255, 255, 255, 0.9);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--text-secondary, #4a5568);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(163, 177, 198, 0.3),
    transparent
  );
}

.divider-text {
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.login-modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.btn-cancel {
  min-width: 8rem;
}

.login-modal-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(163, 177, 198, 0.2);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary, #4a5568);
}

.login-modal-footer a {
  color: var(--color-primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.login-modal-footer a:hover {
  color: var(--color-secondary-blue);
}

.error-message {
  background: rgba(245, 101, 101, 0.1);
  border-left: 0.25rem solid #F56565;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #742a2a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .login-modal-container {
    padding: 2rem 1.5rem;
    width: 95%;
  }
  
  .login-modal-title {
    font-size: 1.25rem;
  }
  
  .login-modal-logo-text {
    font-size: 1.25rem;
  }
}

