/* ============================================================ CSS custom properties — mirrors static/style.css theme ============================================================ */ :root { --bg: linear-gradient(165deg, #b2d9f5 0%, #ceeabd 50%, #edf6e8 100%); --card-bg: #ffffff; --card-shadow: 0 4px 24px rgba(0,0,0,.10); --text: #1a1d23; --text-muted: #6b7280; --border: #d1d5db; --input-bg: #ffffff; --input-focus-border: #2fa700; --input-focus-shadow: 0 0 0 3px rgba(47,167,0,.15); --btn-primary-bg: #2fa700; --btn-primary-hover: #279100; --btn-secondary-bg: #f3f4f6; --btn-secondary-hover: #e5e7eb; --btn-secondary-text: #374151; --alert-error-bg: #fef2f2; --alert-error-border: #fca5a5; --alert-error-text: #991b1b; } @media (prefers-color-scheme: dark) { :root { --bg: linear-gradient(165deg, #06101e 0%, #091a0d 55%, #0f1117 100%); --card-bg: #1e2130; --card-shadow: 0 4px 24px rgba(0,0,0,.40); --text: #e5e7eb; --text-muted: #9ca3af; --border: #374151; --input-bg: #111827; --input-focus-border: #35b800; --input-focus-shadow: 0 0 0 3px rgba(53,184,0,.20); --btn-primary-bg: #35b800; --btn-primary-hover: #2fa700; --btn-secondary-bg: #374151; --btn-secondary-hover: #4b5563; --btn-secondary-text: #d1d5db; --alert-error-bg: #3b1515; --alert-error-border: #7f1d1d; --alert-error-text: #fca5a5; } } /* ============================================================ Body & layout ============================================================ */ body.theme-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; background: var(--bg); background-attachment: fixed; color: var(--text); min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 2rem 1rem; } /* ============================================================ Navbar (brand bar — mirrors static/header.html .brand) ============================================================ */ .theme-navbar { display: flex; align-items: center; } .theme-navbar__logo-wrap { display: flex; align-items: center; gap: 0.625rem; } .theme-navbar__logo { height: 2rem; width: auto; object-fit: contain; } /* ============================================================ Container / Card ============================================================ */ .dex-container { background: var(--card-bg); border-radius: 12px; box-shadow: var(--card-shadow); padding: 2rem 2.5rem; width: 100%; max-width: 440px; margin: 0 auto; color: var(--text); text-align: left; } /* ============================================================ Panel & heading ============================================================ */ .theme-panel { width: 100%; } .theme-heading { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); } /* ============================================================ Form rows, labels, inputs ============================================================ */ .theme-form-row { margin-bottom: 1rem; } .theme-form-label { margin-bottom: 0.375rem; } .theme-form-label label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); } .theme-form-input { display: block; width: 100%; padding: 0.625rem 0.875rem; font-size: 0.9375rem; font-family: inherit; background: var(--input-bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; transition: border-color .15s, box-shadow .15s; outline: none; -webkit-appearance: none; } .theme-form-input:focus { border-color: var(--input-focus-border); box-shadow: var(--input-focus-shadow); } .theme-form-input::placeholder { color: var(--text-muted); } /* ============================================================ Buttons — override dex-btn base ============================================================ */ .dex-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0.625rem 1.25rem; font-size: 0.9375rem; font-family: inherit; font-weight: 500; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; box-shadow: none; } .dex-btn:active { box-shadow: none; } /* Primary button (Login / Submit) */ .theme-btn--primary { background: var(--btn-primary-bg); color: #ffffff; border-color: var(--btn-primary-bg); margin-top: 0.5rem; } .theme-btn--primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); } /* Success button (Grant Access) */ .theme-btn--success { background: var(--btn-primary-bg); color: #ffffff; border-color: var(--btn-primary-bg); } .theme-btn--success:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); } /* Provider / secondary button */ .theme-btn-provider { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border-color: var(--border); } .theme-btn-provider:hover { background: var(--btn-secondary-hover); } /* Reset icon float so buttons stay flex */ .dex-btn-icon { float: none; flex-shrink: 0; border-radius: 4px; } .dex-btn-text { flex: 1; text-align: center; line-height: normal; padding: 0 0.5rem; } /* ============================================================ Error box ============================================================ */ .dex-error-box { background: var(--alert-error-bg); border: 1px solid var(--alert-error-border); color: var(--alert-error-text); border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: normal; max-width: 100%; margin: 0.75rem 0; text-align: left; } /* ============================================================ Separator & subtle text ============================================================ */ .dex-separator { border: none; border-top: 1px solid var(--border); margin: 1rem 0; color: transparent; } .dex-subtle-text { color: var(--text-muted); font-size: 0.875rem; } .dex-list { color: var(--text-muted); font-size: 0.875rem; text-align: left; display: inline-block; list-style: circle; margin-top: 0.5rem; } /* ============================================================ Back link ============================================================ */ .theme-link-back { margin-top: 1rem; text-align: center; } .theme-link-back a { color: var(--btn-primary-bg); text-decoration: none; font-size: 0.875rem; } .theme-link-back a:hover { text-decoration: underline; }