/* Azreon Tracks Platform — shared base styles, loaded by all pages */

:root {
  --card-arrow-open:   #888;
  --card-arrow-closed: #bbb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background-color: var(--bg); background-image: var(--bg-image); background-size: cover; background-position: center; background-attachment: fixed; min-height: 100vh; }
.container { max-width: 820px; margin: 0 auto; padding: 24px 16px; }
.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); margin-bottom: 16px; }
h1 { font-size: 1.4rem; color: var(--text); margin-bottom: 16px; text-align: center; }
input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; margin: 8px 0; }
button.primary { width: 100%; padding: 14px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; margin-top: 8px; }
button.primary:hover { background: var(--primary-dark, color-mix(in srgb, var(--primary) 75%, #000)); }
button.primary:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { width: 100%; padding: 14px; background: var(--secondary); color: #fff; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; margin-top: 8px; }
button.secondary:hover { background: var(--secondary-dark, color-mix(in srgb, var(--secondary) 75%, #000)); }
button.secondary:disabled { opacity: .5; cursor: not-allowed; }
.msg { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 8px; }
.err { color: var(--err); }
.options-email { font-size: .78rem; color: #aaa; padding: 10px 16px 9px; border-bottom: 1px solid #f2f2f2; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.options-item { display: block; width: 100%; padding: 13px 16px; background: none; border: none; border-top: 1px solid #f2f2f2; text-align: left; font-size: .95rem; cursor: pointer; }
.options-item-danger { color: #c0392b; }
.options-item-danger:active { background: #fef5f5; }
#startup-loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.startup-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; overflow: hidden; }
.startup-bar::after { content: ''; display: block; height: 100%; width: 40%; background: var(--loading-colour); border-radius: 2px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.startup-label { font-size: .85rem; color: rgba(255,255,255,0.7); }
