/* ============================================================ Auth styles for OxiCloud — design tokens from variables.css ============================================================ */ .auth-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; width: 100%; position: relative; /* Spotlight + warm brand blobs — seats the card in a pool of light instead of a flat near-white field. */ background: var(--brand-ambient); } /* Fine film grain over the backdrop (not the card). `overlay` neutralises the mid-grey noise so it adds texture without shifting brightness; works in both light and dark. Tune the whole effect with `opacity`. */ .auth-container::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: var(--brand-grain); background-size: 180px 180px; opacity: 0.6; mix-blend-mode: overlay; } /* Keep the card (and every panel) above the grain layer. */ .auth-panel { position: relative; z-index: 1; } .auth-panel { width: 420px; max-width: 90%; margin: 0 auto; background-color: var(--color-bg-surface); border: 1px solid var(--color-border); border-radius: var(--radius-3xl); box-shadow: var(--shadow-xl); padding: var(--space-9); text-align: center; } .auth-logo { display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); } .auth-logo-icon { width: 52px; height: 52px; background: var(--color-accent-gradient); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-right: var(--space-3); /* Tighter glow (negative spread) reads more premium than a wide halo. */ box-shadow: 0 4px 14px -4px var(--color-accent-shadow); } .auth-logo-icon svg { width: 30px; height: 30px; fill: var(--color-on-accent); } .auth-logo-text { font-size: var(--text-2xl); font-weight: var(--weight-bold); color: var(--color-text); } .auth-title { font-size: 22px; font-weight: var(--weight-bold); margin-bottom: var(--space-7); color: var(--color-text-heading); } .auth-form { width: 100%; text-align: left; [dir="rtl"] & { text-align: right; } } .auth-input-group { margin-bottom: var(--space-5); } .auth-label { display: block; margin-bottom: var(--space-2); font-size: var(--text-base); color: var(--color-text-heading); font-weight: var(--weight-semibold); } .auth-input { width: 100%; padding: var(--space-3-5) 18px; border-radius: var(--radius-2xl); /* Stronger resting border so fields read as crafted, not flat fills. */ border: 2px solid var(--color-border-medium); font-size: 15px; background-color: var(--color-bg-input); color: var(--color-text); transition: all 0.2s ease; } .auth-input::placeholder { color: var(--color-text-muted); } .auth-input:hover { border-color: var(--color-accent); background-color: var(--color-bg-surface); } .auth-input:focus { outline: none; border-color: var(--color-accent); background-color: var(--color-bg-surface); box-shadow: 0 0 0 3px var(--color-accent-ring); } .auth-input[readonly] { cursor: default; /* A locked value, not a placeholder: full-strength text on a subtly distinct "locked" fill (no dimming that reads as empty). */ color: var(--color-text); font-weight: var(--weight-semibold); background-color: var(--color-bg-input-alt); } .auth-button { width: 100%; padding: var(--space-3-5) 18px; border-radius: var(--radius-2xl); background: var(--color-accent-gradient); color: var(--color-on-accent); font-weight: var(--weight-bold); border: none; cursor: pointer; font-size: var(--text-md); transition: all 0.3s ease; margin-top: var(--space-3); box-shadow: 0 4px 12px var(--color-accent-shadow); } .auth-button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--color-accent-shadow-lg); filter: brightness(1.05); } .auth-button:active { /* Tactile press — the button dips slightly under the resting plane. */ transform: translateY(1px); box-shadow: 0 2px 8px var(--color-accent-shadow); } .auth-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; } /* Loading — hide the label, show an inline spinner (toggled via .is-loading / aria-busy by auth.js on submit). */ .auth-button.is-loading, .auth-button[aria-busy="true"] { color: transparent; pointer-events: none; position: relative; } .auth-button.is-loading::after, .auth-button[aria-busy="true"]::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--color-on-accent); border-top-color: transparent; border-radius: var(--radius-full); animation: spin var(--spin-duration) linear infinite; } .auth-subtitle { margin: var(--space-5) 0; color: var(--color-text-muted); font-size: var(--text-base); } .auth-action-wrap { margin-top: var(--space-5); } /* SSO / OIDC button */ .auth-button-oidc { background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%); box-shadow: 0 4px 12px var(--color-shadow-3xl); display: flex; align-items: center; justify-content: center; gap: var(--space-2-5); } .auth-button-oidc:hover { box-shadow: 0 6px 20px var(--color-shadow-4xl); } .auth-button-sso { background: var(--color-oidc-bg); box-shadow: 0 4px 12px var(--color-oidc-shadow); } .auth-button-sso:hover { box-shadow: 0 6px 20px var(--color-oidc-shadow-lg); } .auth-button-oidc i { font-size: var(--text-base); } /* Helper text above the magic-link form ("No password? Enter your email…"). Quieter visual weight than the form labels. */ .auth-hint { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.4; color: var(--color-text-secondary); } /* Status banner under the magic-link form. Uniform anti-enumeration message rendered on every successful 2xx; error variant only used for the 503-not-configured branch or network failures. */ .auth-status { margin-top: var(--space-3); padding: var(--space-2-5) var(--space-3-5); border-radius: var(--radius-lg); font-size: var(--text-sm); line-height: 1.4; } .auth-status-success { background: var(--color-bg-hover); color: var(--color-text); border-left: 3px solid var(--color-warning-orange-text); } .auth-status-error { background: var(--color-bg-hover); color: var(--color-text); border-left: 3px solid var(--color-warning-orange-text); } /* Divider between password and SSO login */ .auth-divider { display: flex; align-items: center; margin: var(--space-5) 0; color: var(--color-text-faint); font-size: var(--text-sm); } .auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); } .auth-divider span { padding: 0 var(--space-3); /* Quiet, deliberate label rather than a stray lowercase letter. */ text-transform: uppercase; letter-spacing: var(--tracking-wide, 0.08em); font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); } /* OIDC-only mode: hide password form */ .auth-form.hidden { display: none; } .auth-toggle { margin-top: 22px; font-size: var(--text-base); color: var(--color-text-muted); } .auth-toggle-link { color: var(--color-accent-text); cursor: pointer; text-decoration: none; font-weight: var(--weight-medium); } .auth-toggle-link:hover { text-decoration: underline; } .auth-error { background-color: var(--color-error-bg); color: var(--color-error-text); padding: var(--space-3) 18px; border-radius: var(--radius-2xl); margin-bottom: var(--space-5); font-size: var(--text-base); display: none; } .auth-success { background-color: var(--color-success-bg); color: var(--color-success-text); padding: var(--space-3) 18px; border-radius: var(--radius-2xl); margin-bottom: var(--space-5); font-size: var(--text-base); display: none; } /* Admin setup panel styles — visibility controlled via .hidden class */ .setup-steps { margin-bottom: var(--space-7); /* 3 equal columns → circle centres land at 1/6, 1/2, 5/6, so the connector track can be placed deterministically between them. */ display: grid; grid-template-columns: repeat(3, 1fr); position: relative; } /* Connector track behind the step circles (z-index 0; circles sit above). */ .setup-steps::before { content: ""; position: absolute; top: 17px; /* half of the 34px circle */ left: 16.667%; right: 16.667%; height: 2px; background: var(--color-border); z-index: 0; } .setup-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; } .step-number { width: 34px; height: 34px; background-color: var(--color-bg-input); border: 2px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-text-faint); font-weight: var(--weight-bold); font-size: var(--text-base); margin-bottom: var(--space-1-5); transition: all 0.2s ease; } .step-number.active { background: var(--color-accent-gradient); border-color: transparent; color: var(--color-on-accent); /* Subtle halo lifts the active step off the connector track. */ box-shadow: 0 0 0 4px var(--color-accent-ring), 0 4px 12px var(--color-accent-shadow); } .step-title { font-size: var(--text-xs); color: var(--color-text-faint); font-weight: var(--weight-medium); } .step-title.active { color: var(--color-text-heading); font-weight: var(--weight-semibold); } /* Language selector panel styles */ .language-selector-panel { text-align: center; } .language-subtitle { color: var(--color-text-muted); font-size: var(--text-md); margin-bottom: var(--space-6); } /* ====== Compact Language Picker ====== */ .lang-picker { position: relative; margin-bottom: var(--space-6); text-align: left; } .lang-picker-selected { display: flex; align-items: center; padding: var(--space-3-5) 18px; border: 2px solid var(--color-border); border-radius: var(--radius-2xl); cursor: pointer; background-color: var(--color-bg-input); transition: all 0.2s ease; user-select: none; } .lang-picker-selected:hover { border-color: var(--color-accent); background-color: var(--color-bg-surface); } .lang-picker.open .lang-picker-selected { border-color: var(--color-accent); background-color: var(--color-bg-surface); border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 3px var(--color-accent-ring); } .lang-picker-flag { font-size: 26px; margin-right: var(--space-3-5); flex-shrink: 0; } .lang-picker-name { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text-heading); flex: 1; } .lang-picker-arrow { color: var(--color-text-faint); font-size: var(--text-sm); transition: transform 0.2s ease; flex-shrink: 0; } .lang-picker.open .lang-picker-arrow { transform: rotate(180deg); } /* Dropdown */ .lang-picker-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg-surface); border: 2px solid var(--color-accent); border-top: 1px solid var(--color-border-light); border-bottom-left-radius: var(--radius-2xl); border-bottom-right-radius: var(--radius-2xl); box-shadow: 0 12px 32px var(--color-shadow-lg); z-index: 100; overflow: hidden; } .lang-picker.open .lang-picker-dropdown { display: block; animation: langPickerSlideDown 0.2s ease; } @keyframes langPickerSlideDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } /* Search inside dropdown */ .lang-picker-search { position: relative; padding: var(--space-2-5) var(--space-3-5); border-bottom: 1px solid var(--color-border-light); } .lang-picker-search i { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); color: var(--color-text-faint); font-size: var(--text-sm); } .lang-picker-search input { width: 100%; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-8); border: 1px solid var(--color-border); border-radius: var(--radius-lg); font-size: var(--text-base); outline: none; box-sizing: border-box; background-color: var(--color-bg-input); color: var(--color-text); transition: border-color 0.2s; } .lang-picker-search input::placeholder { color: var(--color-text-faint); } .lang-picker-search input:focus { border-color: var(--color-accent); } /* Scrollable list */ .lang-picker-list { max-height: 240px; overflow-y: auto; padding: var(--space-1-5); } /* Language item in dropdown */ .lang-picker-item { display: flex; align-items: center; gap: var(--space-2-5); padding: var(--space-2-5) var(--space-3); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.12s ease; } .lang-picker-item:hover { background: var(--color-bg-hover); } .lang-picker-item.selected { background: var(--color-accent-tint); } .lang-picker-item-flag { font-size: 22px; flex-shrink: 0; } .lang-picker-item-name { font-size: 15px; font-weight: var(--weight-medium); color: var(--color-text-heading); } .lang-picker-item-english { font-size: var(--text-sm); color: var(--color-text-faint); margin-left: auto; } .lang-picker-item-check { color: var(--color-accent); font-size: var(--text-sm); flex-shrink: 0; } .lang-picker-empty { text-align: center; color: var(--color-text-faint); padding: var(--space-5); font-size: var(--text-base); } @media (max-width: 480px) { .auth-panel { width: 95%; padding: var(--space-6); } .lang-picker-selected { padding: var(--space-3) var(--space-3-5); } .lang-picker-list { max-height: 200px; } } /* ============================================================ Premium polish — brand lockup, CTA hierarchy, field icons, password reveal, progressive disclosure, match feedback. Icons are token-safe CSS masks (no inline SVG, no raw colour): the glyph alpha comes from the data-URI, the colour from a token. ============================================================ */ /* — Brand wordmark: the ownable "Oxi" accent lockup (DESIGN-SYSTEM §3) — */ .brand-oxi { background: var(--color-accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; } /* — CTA hierarchy: exactly one primary per screen. The secondary action (magic-link, etc.) is a quiet tinted/ghost button, never a 2nd gradient. — */ .auth-button-secondary { background: var(--color-accent-tint); color: var(--color-accent-text); border: 1.5px solid var(--color-border-medium); box-shadow: none; } .auth-button-secondary:hover { background: var(--color-bg-surface); border-color: var(--color-accent); box-shadow: none; filter: none; transform: translateY(-1px); } .auth-button-secondary:active { transform: translateY(1px); box-shadow: none; } /* — Leading field icons (user / mail / lock) via masked pseudo-element — */ .auth-input-wrap { position: relative; } .auth-input-wrap .auth-input { padding-left: 44px; } .auth-input-wrap.has-toggle .auth-input { padding-right: 44px; } .auth-input-wrap::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background-color: var(--color-text-muted); pointer-events: none; z-index: 1; transition: background-color 0.2s ease; -webkit-mask: var(--icon-url, none) center / contain no-repeat; mask: var(--icon-url, none) center / contain no-repeat; } .auth-input-wrap:focus-within::before { background-color: var(--color-accent); } .auth-input-wrap--user { --icon-url: url("data:image/svg+xml,"); } .auth-input-wrap--mail { --icon-url: url("data:image/svg+xml,"); } .auth-input-wrap--lock { --icon-url: url("data:image/svg+xml,"); } /* — Password show/hide toggle — */ .auth-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; z-index: 2; } .auth-pw-toggle::before { content: ""; width: 18px; height: 18px; background-color: var(--color-text-muted); transition: background-color 0.2s ease; --eye: url("data:image/svg+xml,"); -webkit-mask: var(--eye) center / contain no-repeat; mask: var(--eye) center / contain no-repeat; } .auth-pw-toggle:hover::before { background-color: var(--color-accent); } .auth-pw-toggle[aria-pressed="true"]::before { --eye: url("data:image/svg+xml,"); } /* — Progressive disclosure of the magic-link form — */ .auth-magic-toggle { display: block; width: 100%; margin-top: var(--space-1); padding: var(--space-2); background: none; border: none; color: var(--color-accent-text); font-size: var(--text-sm); font-weight: var(--weight-medium); cursor: pointer; text-align: center; } .auth-magic-toggle:hover { text-decoration: underline; } .auth-magic-reveal { margin-top: var(--space-3); } .auth-magic-reveal:not(.hidden) { animation: langPickerSlideDown 0.2s ease; } /* — Live password-match feedback (sits inside the confirm field group) — */ .auth-match { margin-top: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-medium); display: none; align-items: center; gap: var(--space-1-5); } .auth-match.show { display: flex; } .auth-match::before { content: ""; width: 14px; height: 14px; flex-shrink: 0; background-color: currentColor; -webkit-mask: var(--match-icon) center / contain no-repeat; mask: var(--match-icon) center / contain no-repeat; } .auth-match--ok { color: var(--color-success-text); --match-icon: url("data:image/svg+xml,"); } .auth-match--bad { color: var(--color-error-text); --match-icon: url("data:image/svg+xml,"); } /* "Caps Lock is on" hint under a password field (toggled by auth.js). */ .auth-caps-warning { display: flex; align-items: center; gap: var(--space-1-5); margin-top: var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-warning-orange-text); } /* Nextcloud drive picker — radio list of drives the authenticated user can select for this app-password binding. */ .auth-drive-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--color-border); border-radius: 12px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; } .auth-drive-option:hover { background: var(--color-bg-hover); border-color: var(--color-accent); } .auth-drive-option input[type="radio"] { margin: 0; accent-color: var(--color-accent); } .auth-drive-option input[type="radio"]:checked ~ .auth-drive-name { font-weight: 600; } .auth-drive-name { flex: 1; color: var(--color-text); font-size: 15px; } .auth-drive-badge { padding: 2px 10px; border-radius: 999px; background: var(--color-accent-gradient); color: var(--color-danger-text); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }