diff --git a/docs/designs/login.html b/docs/designs/login.html index 8d445f5..6baff51 100644 --- a/docs/designs/login.html +++ b/docs/designs/login.html @@ -14,29 +14,61 @@ min-height: 100vh; display: flex; flex-direction: column; - justify-content: center; - padding: 24px; background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%); } - .login-header { - text-align: center; - margin-bottom: 48px; + .app-bar { + display: flex; + align-items: center; + justify-content: flex-end; + padding: 8px 8px 0; + min-height: 56px; } - .logo { - width: 80px; - height: 80px; + .icon-btn { + width: 40px; + height: 40px; + border: none; + background: transparent; + border-radius: 50%; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: var(--text-primary); + transition: background 0.15s; + } + .icon-btn:hover { background: var(--surface-variant); } + .icon-btn svg { width: 22px; height: 22px; } + + .login-body { + flex: 1; + display: flex; + justify-content: center; + overflow-y: auto; + padding: 0 24px 24px; + } + + .login-content { + width: 100%; + max-width: 440px; + display: flex; + flex-direction: column; + } + + .logo-card { + width: 88px; + height: 88px; background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%); - border-radius: 20px; - margin: 0 auto 24px; + border-radius: 24px; + margin: 16px auto 0; display: flex; align-items: center; justify-content: center; - box-shadow: 0 8px 32px rgba(0, 102, 255, 0.25); + box-shadow: 0 12px 28px rgba(0, 102, 255, 0.24); } - .logo svg { + .logo-card svg { width: 44px; height: 44px; color: white; @@ -46,31 +78,281 @@ font-size: 32px; font-weight: 700; color: var(--text-primary); - margin-bottom: 8px; + text-align: center; + margin: 24px 0 0; letter-spacing: -0.5px; } .app-tagline { color: var(--text-secondary); font-size: 15px; + text-align: center; + margin: 8px 0 32px; } - .login-methods { + .provider-section { display: flex; flex-direction: column; - gap: 16px; - margin-bottom: 32px; + align-items: center; + gap: 8px; + margin-bottom: 20px; } - .divider-with-text { + .provider-label { + font-size: 13px; + font-weight: 600; + color: var(--text-primary); + text-transform: none; + } + + .segmented-control { + display: flex; + background: var(--surface); + border: 1.5px solid var(--border); + border-radius: 50px; + padding: 3px; + gap: 2px; + } + + .segment { display: flex; align-items: center; - gap: 16px; - margin: 24px 0; + gap: 6px; + padding: 8px 18px; + border-radius: 50px; + border: none; + background: transparent; + cursor: pointer; + font-size: 13px; + font-weight: 500; + color: var(--text-secondary); + font-family: inherit; + transition: background 0.15s, color 0.15s; + } + + .segment.active { + background: var(--accent-primary); + color: #fff; + } + + .segment svg { + width: 16px; + height: 16px; + } + + .search-bar { + display: flex; + align-items: center; + border: 1.5px solid var(--border); + border-radius: 14px; + background: var(--bg); + transition: border-color 0.15s, box-shadow 0.15s; + overflow: visible; + margin-bottom: 0; + } + + .search-bar:focus-within { + border-color: var(--accent-primary); + box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12); + } + + .search-bar .input-icon { + flex-shrink: 0; + width: 20px; + height: 20px; + margin-left: 14px; color: var(--text-muted); + } + + .search-bar .input { + flex: 1; + border: none !important; + outline: none !important; + background: transparent; + box-shadow: none !important; + padding: 14px 10px; + font-size: 15px; + } + + .search-bar .input:focus { + border: none; + box-shadow: none; + } + + .btn-continue { + flex-shrink: 0; + width: 40px; + height: 40px; + margin: 5px; + border-radius: 10px; + background: var(--accent-primary); + border: none; + color: white; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: background 0.15s, transform 0.1s; + } + + .btn-continue:hover { background: var(--accent-primary-hover); } + .btn-continue:active { transform: scale(0.92); } + .btn-continue svg { width: 18px; height: 18px; } + + .typeahead-wrapper { + position: relative; + margin-bottom: 20px; + } + + .typeahead-dropdown { + position: absolute; + bottom: calc(100% + 6px); + left: 0; + right: 0; + background: var(--bg); + border: 1.5px solid var(--border); + border-radius: 12px; + box-shadow: 0 -4px 24px rgba(0,0,0,0.10); + z-index: 10; + overflow: hidden; + } + + .typeahead-item { + display: flex; + align-items: center; + gap: 10px; + padding: 10px 14px; + cursor: pointer; + transition: background 0.1s; + } + + .typeahead-item:hover { background: var(--surface); } + + .typeahead-avatar { + width: 32px; + height: 32px; + border-radius: 50%; + background: var(--surface-variant); + flex-shrink: 0; + overflow: hidden; + } + + .typeahead-avatar img { + width: 100%; + height: 100%; + object-fit: cover; + } + + .typeahead-handle { font-size: 13px; + color: var(--text-primary); font-weight: 500; + } + + .typeahead-display-name { + font-size: 12px; + color: var(--text-secondary); + } + + .account-switcher { + margin-top: 28px; + } + + .account-switcher-header { + font-size: 12px; + font-weight: 600; + color: var(--text-muted); + text-transform: uppercase; + letter-spacing: 0.06em; + margin-bottom: 10px; + } + + .account-list { + display: flex; + flex-direction: column; + gap: 6px; + } + + .account-item { + display: flex; + align-items: center; + gap: 12px; + padding: 12px 14px; + background: var(--surface); + border-radius: 12px; + cursor: pointer; + border: 1.5px solid transparent; + transition: border-color 0.15s, background 0.15s; + } + + .account-item:hover { + border-color: var(--border); + background: var(--bg); + } + + .account-avatar { + width: 40px; + height: 40px; + border-radius: 50%; + background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + color: white; + font-size: 15px; + font-weight: 700; + } + + .account-info { + flex: 1; + min-width: 0; + } + + .account-display-name { + font-size: 14px; + font-weight: 600; + color: var(--text-primary); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .account-handle { + font-size: 12px; + color: var(--text-secondary); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + + .account-remove { + width: 28px; + height: 28px; + border: none; + background: transparent; + border-radius: 50%; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: var(--text-muted); + flex-shrink: 0; + transition: background 0.1s, color 0.1s; + } + .account-remove:hover { background: var(--surface-variant); color: var(--accent-error); } + .account-remove svg { width: 16px; height: 16px; } + + .divider-with-text { + display: flex; + align-items: center; + gap: 16px; + margin: 24px 0 16px; + color: var(--text-muted); + font-size: 12px; + font-weight: 600; text-transform: uppercase; + letter-spacing: 0.06em; } .divider-with-text::before, @@ -82,129 +364,311 @@ } .debug-section { - background-color: var(--surface); + border: 1.5px solid var(--border); border-radius: 12px; - padding: 20px; - border: 1.5px dashed var(--border); + overflow: hidden; } .debug-header { display: flex; align-items: center; gap: 8px; - margin-bottom: 16px; + padding: 14px 16px; + } + + .debug-icon { + color: var(--text-secondary); } + .debug-icon svg { width: 20px; height: 20px; } .debug-title { font-weight: 600; color: var(--text-primary); font-size: 15px; + flex: 1; } - .debug-form { - display: flex; - flex-direction: column; - gap: 12px; + .debug-toggle { + border: none; + background: transparent; + color: var(--accent-primary); + font-size: 14px; + font-weight: 500; + font-family: inherit; + cursor: pointer; + padding: 4px 8px; + border-radius: 6px; + transition: background 0.1s; } + .debug-toggle:hover { background: var(--surface); } - .input-group { + .debug-body { + padding: 0 16px 16px; display: flex; flex-direction: column; - gap: 6px; + gap: 12px; } - .input-label { - font-size: 13px; - font-weight: 500; - color: var(--text-secondary); - text-transform: uppercase; - } + .debug-body.hidden { display: none; } .help-text { font-size: 12px; color: var(--text-muted); - margin-top: 8px; text-align: center; + line-height: 1.5; } .login-footer { - text-align: center; - margin-top: auto; - padding-top: 32px; + display: flex; + justify-content: center; + align-items: center; + gap: 8px; + margin-top: 28px; + padding-bottom: 8px; + flex-wrap: wrap; } - .terms-text { + .footer-btn { + border: none; + background: transparent; + color: var(--accent-primary); + font-size: 13px; + font-weight: 500; + font-family: inherit; + cursor: pointer; + padding: 4px 8px; + border-radius: 6px; + transition: background 0.1s; + } + .footer-btn:hover { background: var(--surface); } + + .footer-dot { font-size: 12px; color: var(--text-muted); - line-height: 1.6; }
- -