/* Main Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global focus styles for accessibility */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Smooth scrolling with reduced motion support */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body {
  height: 100%;
  /* Allow vertical scrolling for long manifest lists */
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Loading Screen */
.loading-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
}

/* Spinner - Apple-style smooth animation */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--ochre-grey-90);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: pulse 1.5s ease-in-out infinite;
    border-top-color: var(--brand-primary);
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
}

/* Navigation Bar - Apple-style with backdrop blur */
.navbar {
  background: rgba(255, 251, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--ochre-grey-80);
  padding: var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-fast);
}

@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(26, 20, 16, 0.8);
  }
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.nav-title-main {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
}

.nav-title-sub {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

.nav-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.nav-button {
  background: none;
  border: none;
  color: var(--brand-primary);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-button:hover {
  background: rgba(212, 165, 116, 0.08);
  transform: scale(1.05);
}

.nav-button:active {
  background: rgba(212, 165, 116, 0.15);
  transform: scale(0.95);
}

.nav-button:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-button:hover,
  .nav-button:active {
    transform: none;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--background);
}

/* Centered Message */
.centered-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: var(--spacing-xl);
  gap: var(--spacing-md);
  text-align: center;
}

.error-icon {
  color: var(--error);
  width: 48px;
  height: 48px;
}

.error-text {
  color: var(--text-secondary);
  max-width: 400px;
}

/* Buttons - Apple-style refined */
.btn {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-secondary {
  background: var(--ochre-grey-80);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--ochre-grey-70);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
  background: var(--ochre-grey-60);
  transform: scale(0.98);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--ochre-grey-60);
  outline-offset: 2px;
}

.btn-large {
  padding: 14px 28px;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* Home View */
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.text-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.text-item {
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: 1px solid transparent;
  box-shadow: var(--shadow-xs);
}

.text-item:hover {
  background: var(--ochre-grey-95);
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateX(2px);
  box-shadow: var(--shadow-md);
}

.text-item:active {
  transform: scale(0.99);
  box-shadow: var(--shadow-xs);
}

.text-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.text-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.text-script {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  font-weight: var(--font-weight-normal);
}

@media (prefers-reduced-motion: reduce) {
  .text-item:hover,
  .text-item:active {
    transform: none;
  }
}

/* Index View */
.index-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.index-header {
  margin-bottom: var(--spacing-lg);
}

.index-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.index-item {
  padding: 14px var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
  box-shadow: var(--shadow-xs);
}

.index-item:hover {
  background: var(--ochre-grey-95);
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.index-item:active {
  transform: scale(0.99);
}

.index-item:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.index-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.index-count {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--ochre-grey-90);
  padding: 4px 10px;
  border-radius: var(--radius-md);
}

@media (prefers-reduced-motion: reduce) {
  .index-item:hover,
  .index-item:active {
    transform: none;
  }
}

/* Reader View */
.reader-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.verses-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.verse-container {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--brand-primary);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-medium);
}

.verse-container:hover {
  box-shadow: var(--shadow-sm);
  border-left-width: 4px;
}

.verse-number {
  flex-shrink: 0;
  width: 44px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-primary);
  line-height: var(--line-height-loose);
  letter-spacing: -0.01em;
}

.verse-text {
  flex: 1;
  line-height: var(--line-height-loose);
  color: var(--text-primary);
  font-family: 'Noto Sans Devanagari', 'Noto Serif', serif;
  font-size: var(--font-size-lg);
}

/* Fullscreen Overlay - Apple-style */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 1000;
  overflow-y: auto;
  padding: var(--spacing-xl);
  animation: fadeIn var(--transition-medium);
}

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

.fullscreen-close {
  position: fixed;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--surface);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.fullscreen-close:hover {
  background: var(--ochre-grey-90);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.fullscreen-close:active {
  transform: scale(0.95);
}

.fullscreen-close:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fullscreen-overlay {
    animation: none;
  }
  .fullscreen-close:hover,
  .fullscreen-close:active {
    transform: none;
  }
}

.fullscreen-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: var(--spacing-xl);
}

/* Modal - Apple-style with backdrop blur */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  animation: modalFadeIn var(--transition-medium);
}

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

.modal-content {
  background: var(--background);
  border-radius: var(--radius-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp var(--transition-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 0.5px solid var(--ochre-grey-80);
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 0.5px solid var(--ochre-grey-80);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  background: var(--ochre-grey-90);
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--ochre-grey-80);
  transform: scale(1.1);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-close:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .modal {
    animation: none;
  }
  .modal-content {
    animation: none;
  }
  .modal-close:hover,
  .modal-close:active {
    transform: none;
  }
}

.modal-body {
  padding: var(--spacing-lg);
}

/* Settings */
.settings-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.setting-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.setting-section h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.01em;
}

.setting-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px var(--spacing-md);
  background: var(--surface);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.radio-option:hover {
  background: var(--ochre-grey-90);
  border-color: rgba(212, 165, 116, 0.2);
}

.radio-option:has(input:checked) {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--brand-primary);
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--brand-primary);
}

.radio-option:focus-within {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.setting-slider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.setting-slider input[type="range"] {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--ochre-grey-80);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.setting-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.setting-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
}

.setting-slider input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.05);
}

.setting-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--brand-primary);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.setting-slider input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.4);
}

.setting-slider input[type="range"]:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

.slider-value {
  min-width: 60px;
  text-align: right;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

@media (prefers-reduced-motion: reduce) {
  .setting-slider input[type="range"]::-webkit-slider-thumb:hover,
  .setting-slider input[type="range"]::-webkit-slider-thumb:active,
  .setting-slider input[type="range"]::-moz-range-thumb:hover {
    transform: none;
  }
}

.font-preview {
  padding: var(--spacing-lg);
  background: var(--surface);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: 'Noto Sans Devanagari', serif;
}

.setting-info {
  padding: var(--spacing-md);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.setting-info p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

.setting-info p:last-child {
  margin-bottom: 0;
}

/* Subscription */
.subscription-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.subscription-hero {
  text-align: center;
}

.subscription-hero h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.subscription-tagline {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.subscription-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.feature-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .feature-item:hover {
    transform: none;
  }
}

.feature-icon {
  color: var(--success);
  flex-shrink: 0;
}

.subscription-cta {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.subscription-note {
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.subscription-footer {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--ochre-grey-80);
}

.subscription-terms {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.subscription-terms a {
  color: var(--brand-primary);
  text-decoration: none;
}

/* Toast - Apple-style notifications */
.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 16px 20px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  max-width: 400px;
  border: 0.5px solid var(--ochre-grey-80);
  animation: toastSlideUp var(--transition-spring);
}

@keyframes toastSlideUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  .toast {
    background: rgba(46, 38, 32, 0.95);
  }
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--error);
}

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

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: var(--spacing-sm);
  }
  
  .nav-title {
    font-size: 1.25rem;
  }
  
  .home-container,
  .index-container,
  .reader-container {
    padding: var(--spacing-md);
  }
  
  .modal-content {
    max-width: 100%;
    margin: var(--spacing-md);
  }
}

/* Dark mode refinements */
@media (prefers-color-scheme: dark) {
  .text-item {
    background: var(--ochre-grey-20);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .text-item:hover {
    background: var(--ochre-grey-30);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  }

  .index-item {
    background: var(--ochre-grey-20);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .index-item:hover {
    background: var(--ochre-grey-30);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }

  .verse-container {
    background: var(--ochre-grey-20);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
  }

  .verse-container:hover {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  }

  .modal-content {
    border: 0.5px solid var(--ochre-grey-40);
  }

  .navbar {
    border-bottom: 0.5px solid var(--ochre-grey-40);
  }

  .radio-option,
  .feature-item,
  .setting-info,
  .font-preview {
    background: var(--ochre-grey-20);
  }
}

/* Passkey Auth Styles */
.passkey-auth-container {
  max-width: 480px;
  width: 100%;
}

.passkey-hero {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.passkey-icon {
  color: var(--brand-primary);
  margin-bottom: var(--spacing-md);
}

.passkey-hero h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.passkey-hero p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

.passkey-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.form-group input {
  padding: 12px var(--spacing-md);
  border: 1px solid var(--ochre-grey-70);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--surface);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
}

.form-group input:hover {
  border-color: var(--ochre-grey-60);
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .form-group input:focus {
    transform: none;
  }
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.button-group .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px var(--spacing-lg);
  font-size: var(--font-size-base);
}

.button-group .btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.button-group .btn:hover svg {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .button-group .btn:hover svg {
    transform: none;
  }
}

.status-message {
  padding: 14px var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: var(--font-weight-medium);
  display: none;
  font-size: var(--font-size-sm);
  animation: fadeIn var(--transition-medium);
}

.status-message.info {
  background: rgba(25, 118, 210, 0.1);
  color: #1976d2;
  border: 1px solid rgba(25, 118, 210, 0.3);
}

.status-message.success {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.status-message.error {
  background: rgba(186, 26, 26, 0.1);
  color: #ba1a1a;
  border: 1px solid rgba(186, 26, 26, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .status-message {
    animation: none;
  }
}

.passkey-info {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--ochre-grey-80);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.passkey-info p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  line-height: var(--line-height-relaxed);
}

