@rc-tool/unified-auth-hosted-service 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- export declare const loginPageStyles = "\n:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n* { box-sizing: border-box; }\nbody {\n margin: 0;\n min-height: 100vh;\n overflow-x: hidden;\n background: #08131f;\n color: #f8fafc;\n}\nbody::before,\nbody::after {\n content: \"\";\n position: fixed;\n inset: 0;\n pointer-events: none;\n}\nbody::before {\n background:\n url(\"https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82\")\n center / cover no-repeat;\n transform: scale(1.02);\n}\nbody::after {\n background:\n linear-gradient(90deg, rgb(7 18 32 / 92%) 0%, rgb(9 31 45 / 78%) 48%, rgb(14 111 100 / 72%) 100%),\n linear-gradient(180deg, rgb(5 12 22 / 16%) 0%, rgb(5 12 22 / 56%) 100%);\n}\na {\n min-height: 44px;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n text-decoration: none;\n font-weight: 700;\n}\n.auth-status {\n position: fixed;\n z-index: 2;\n top: 24px;\n right: 24px;\n min-height: 36px;\n display: inline-flex;\n align-items: center;\n padding: 0 14px;\n border: 1px solid rgb(148 163 184 / 24%);\n border-radius: 8px;\n background: rgb(15 23 42 / 74%);\n box-shadow: 0 14px 32px rgb(0 0 0 / 22%);\n color: #e2e8f0;\n font-size: 13px;\n}\n.auth-shell {\n position: relative;\n z-index: 1;\n min-height: 100vh;\n width: min(1280px, calc(100vw - 48px));\n margin: 0 auto;\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);\n align-items: center;\n gap: 72px;\n padding: 72px 0;\n}\n.hero-copy {\n max-width: 760px;\n}\n.brand-row {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 30px;\n}\n.mark {\n width: 56px;\n height: 56px;\n display: grid;\n place-items: center;\n border-radius: 8px;\n background: linear-gradient(135deg, #4f8cff 0%, #22d4b8 100%);\n color: #fff;\n box-shadow: 0 16px 32px rgb(34 211 238 / 18%);\n color: #fff;\n}\n.mark svg { width: 30px; height: 30px; display: block; }\n.brand-title {\n display: inline-flex;\n align-items: center;\n min-height: 28px;\n padding: 0 10px;\n border-radius: 6px;\n background: rgb(15 23 42 / 48%);\n color: #bfdbfe;\n font-size: 14px;\n font-weight: 700;\n}\n.hero-kicker {\n margin-bottom: 16px;\n color: #67e8f9;\n font-size: 14px;\n font-weight: 800;\n}\nh1 {\n max-width: 720px;\n margin: 0 0 18px;\n color: #fff;\n font-size: 40px;\n line-height: 1.18;\n font-weight: 800;\n}\n.hero-copy p {\n max-width: 680px;\n margin: 0;\n color: #e2e8f0;\n font-size: 16px;\n line-height: 1.8;\n font-weight: 600;\n}\n.login-panel {\n width: 100%;\n border: 1px solid rgb(148 163 184 / 18%);\n border-radius: 8px;\n background: rgb(15 23 42 / 92%);\n box-shadow: 0 26px 70px rgb(0 0 0 / 38%);\n padding: 34px;\n}\n.login-kicker {\n margin-bottom: 8px;\n color: #93c5fd;\n font-size: 13px;\n font-weight: 800;\n}\nh2 {\n margin: 0 0 14px;\n color: #f8fafc;\n font-size: 26px;\n line-height: 1.25;\n font-weight: 800;\n}\n.login-panel p {\n margin: 0 0 24px;\n color: #aebccc;\n font-size: 14px;\n line-height: 1.7;\n font-weight: 600;\n}\n.provider-list {\n display: grid;\n gap: 14px;\n}\n.primary-provider {\n min-height: 52px;\n gap: 10px;\n padding: 0 18px;\n background: #4f7fe5;\n color: #fff;\n box-shadow: 0 10px 22px rgb(79 127 229 / 28%);\n transition: transform .16s ease, box-shadow .16s ease, background .16s ease;\n}\n.primary-provider:hover {\n background: #5d8cf1;\n box-shadow: 0 16px 30px rgb(79 127 229 / 36%);\n transform: translateY(-1px);\n}\n.primary-provider-icon {\n width: 22px;\n height: 22px;\n display: grid;\n place-items: center;\n flex: 0 0 auto;\n color: #fff;\n background: transparent;\n border: 0;\n}\n.primary-provider-icon svg {\n width: 21px;\n height: 21px;\n display: block;\n}\n.primary-provider .provider-name {\n margin: 0;\n font-size: inherit;\n}\n.provider-divider {\n display: flex;\n align-items: center;\n gap: 12px;\n color: #7d8da3;\n font-size: 12px;\n font-weight: 700;\n}\n.provider-divider::before,\n.provider-divider::after {\n content: \"\";\n height: 1px;\n flex: 1;\n background: rgb(148 163 184 / 16%);\n}\n.secondary-provider-list {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 10px;\n}\n.provider-option {\n min-height: 72px;\n flex-direction: column;\n gap: 8px;\n padding: 12px 10px;\n border: 1px solid rgb(148 163 184 / 18%);\n color: #e5edf8;\n background: rgb(30 41 59 / 62%);\n text-align: center;\n transition: transform .16s ease, border-color .16s ease, background .16s ease;\n}\n.provider-option:hover {\n border-color: rgb(147 197 253 / 52%);\n background: rgb(30 64 94 / 76%);\n transform: translateY(-1px);\n}\n.provider-icon {\n width: 30px;\n height: 30px;\n display: grid;\n place-items: center;\n border-radius: 6px;\n flex: 0 0 auto;\n}\n.provider-icon svg {\n width: 22px;\n height: 22px;\n display: block;\n}\n.provider-icon-feishu {\n background: transparent;\n}\n.provider-icon-google {\n background: #fff;\n border: 1px solid rgb(226 232 240 / 86%);\n}\n.provider-icon-github {\n background: #0b1120;\n color: #fff;\n}\n.provider-name {\n max-width: 100%;\n font-size: 13px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.provider-empty {\n border: 1px solid rgb(251 191 36 / 24%);\n color: #fde68a;\n background: rgb(120 53 15 / 28%);\n border-radius: 6px;\n padding: 12px 14px;\n line-height: 1.6;\n font-size: 14px;\n}\n.dev-link {\n min-height: 42px;\n margin-top: 12px;\n border: 1px solid rgb(148 163 184 / 16%);\n background: rgb(15 23 42 / 48%);\n color: #cbd5e1;\n font-size: 13px;\n}\n.dev-link:hover {\n border-color: rgb(148 163 184 / 34%);\n background: rgb(30 41 59 / 72%);\n}\n.error {\n border: 1px solid rgb(248 113 113 / 36%);\n color: #fecaca;\n background: rgb(127 29 29 / 34%);\n border-radius: 6px;\n padding: 10px 12px;\n margin-bottom: 16px;\n}\n.footer-row {\n margin-top: 18px;\n color: #64748b;\n font-size: 12px;\n}\n@media (max-width: 780px) {\n .auth-status {\n top: 16px;\n right: 16px;\n }\n .auth-shell {\n width: min(100% - 32px, 520px);\n min-height: auto;\n grid-template-columns: 1fr;\n gap: 30px;\n padding: 92px 0 34px;\n }\n .hero-copy {\n max-width: none;\n }\n .brand-row {\n margin-bottom: 22px;\n }\n .mark {\n width: 48px;\n height: 48px;\n }\n .mark svg { width: 26px; height: 26px; }\n h1 {\n font-size: 30px;\n }\n .hero-copy p {\n font-size: 15px;\n }\n .login-panel {\n padding: 26px;\n }\n h2 {\n font-size: 23px;\n }\n}\n@media (max-width: 420px) {\n .auth-shell {\n width: min(100% - 24px, 420px);\n padding-top: 82px;\n }\n .auth-status {\n min-height: 32px;\n padding: 0 11px;\n font-size: 12px;\n }\n .brand-title {\n max-width: 230px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n h1 {\n font-size: 27px;\n }\n .login-panel {\n padding: 22px;\n }\n .secondary-provider-list {\n grid-template-columns: 1fr;\n }\n}\n";
1
+ export declare const loginPageStyles = "\n:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif; }\n* { box-sizing: border-box; }\nbody { margin: 0; min-height: 100vh; overflow-x: hidden; background: #08131f; color: #f8fafc; }\nbody::before, body::after { content: \"\"; position: fixed; inset: 0; pointer-events: none; }\nbody::before {\n background: url(\"https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82\") center / cover no-repeat;\n transform: scale(1.02);\n}\nbody::after {\n background:\n linear-gradient(90deg, rgb(7 18 32 / 92%) 0%, rgb(9 31 45 / 78%) 48%, rgb(14 111 100 / 72%) 100%),\n linear-gradient(180deg, rgb(5 12 22 / 16%) 0%, rgb(5 12 22 / 56%) 100%);\n}\na { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; font-weight: 700; }\n.auth-status {\n position: fixed; z-index: 2; top: 24px; right: 24px; min-height: 36px; display: inline-flex; align-items: center;\n padding: 0 14px; border: 1px solid rgb(148 163 184 / 24%); border-radius: 8px; background: rgb(15 23 42 / 74%);\n box-shadow: 0 14px 32px rgb(0 0 0 / 22%); color: #e2e8f0; font-size: 13px;\n}\n.auth-shell {\n position: relative; z-index: 1; min-height: 100vh; width: min(1280px, calc(100vw - 48px)); margin: 0 auto;\n display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: 72px; padding: 72px 0;\n}\n.hero-copy { max-width: 760px; }\n.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }\n.mark {\n width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px;\n background: linear-gradient(135deg, #4f8cff 0%, #22d4b8 100%); color: #fff; box-shadow: 0 16px 32px rgb(34 211 238 / 18%);\n}\n.mark svg { width: 30px; height: 30px; display: block; }\n.brand-title {\n display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px;\n background: rgb(15 23 42 / 48%); color: #bfdbfe; font-size: 14px; font-weight: 700;\n}\n.hero-kicker { margin-bottom: 16px; color: #67e8f9; font-size: 14px; font-weight: 800; }\nh1 { max-width: 720px; margin: 0 0 18px; color: #fff; font-size: 40px; line-height: 1.18; font-weight: 800; }\n.hero-copy p { max-width: 680px; margin: 0; color: #e2e8f0; font-size: 16px; line-height: 1.8; font-weight: 600; }\n.login-panel {\n width: 100%; border: 1px solid rgb(148 163 184 / 18%); border-radius: 8px; background: rgb(15 23 42 / 92%);\n box-shadow: 0 26px 70px rgb(0 0 0 / 38%); padding: 34px;\n}\n.login-kicker { margin-bottom: 8px; color: #93c5fd; font-size: 13px; font-weight: 800; }\nh2 { margin: 0 0 14px; color: #f8fafc; font-size: 26px; line-height: 1.25; font-weight: 800; }\n.login-panel p { margin: 0 0 24px; color: #aebccc; font-size: 14px; line-height: 1.7; font-weight: 600; }\n.provider-list { display: grid; gap: 14px; }\n.primary-provider {\n min-height: 52px; gap: 10px; padding: 0 18px; background: #4f7fe5; color: #fff; box-shadow: 0 10px 22px rgb(79 127 229 / 28%);\n transition: transform .16s ease, box-shadow .16s ease, background .16s ease;\n}\n.primary-provider:hover { background: #5d8cf1; box-shadow: 0 16px 30px rgb(79 127 229 / 36%); transform: translateY(-1px); }\n.primary-provider-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: transparent; border: 0; }\n.primary-provider-icon svg { width: 21px; height: 21px; display: block; }\n.primary-provider .provider-name { margin: 0; font-size: inherit; }\n.provider-divider { display: flex; align-items: center; gap: 12px; color: #7d8da3; font-size: 12px; font-weight: 700; }\n.provider-divider::before, .provider-divider::after { content: \"\"; height: 1px; flex: 1; background: rgb(148 163 184 / 16%); }\n.secondary-provider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }\n.provider-option {\n min-height: 72px; flex-direction: column; gap: 8px; padding: 12px 10px; border: 1px solid rgb(148 163 184 / 18%);\n color: #e5edf8; background: rgb(30 41 59 / 62%); text-align: center; transition: transform .16s ease, border-color .16s ease, background .16s ease;\n}\n.provider-option:hover { border-color: rgb(147 197 253 / 52%); background: rgb(30 64 94 / 76%); transform: translateY(-1px); }\n.provider-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; flex: 0 0 auto; }\n.provider-icon svg { width: 22px; height: 22px; display: block; }\n.provider-icon-feishu { background: transparent; }\n.provider-icon-google { background: #fff; border: 1px solid rgb(226 232 240 / 86%); }\n.provider-icon-github { background: #0b1120; color: #fff; }\n.provider-name { max-width: 100%; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.provider-empty { border: 1px solid rgb(251 191 36 / 24%); color: #fde68a; background: rgb(120 53 15 / 28%); border-radius: 6px; padding: 12px 14px; line-height: 1.6; font-size: 14px; }\n.dev-link { min-height: 42px; margin-top: 12px; border: 1px solid rgb(148 163 184 / 16%); background: rgb(15 23 42 / 48%); color: #cbd5e1; font-size: 13px; }\n.dev-link:hover { border-color: rgb(148 163 184 / 34%); background: rgb(30 41 59 / 72%); }\n.error { border: 1px solid rgb(248 113 113 / 36%); color: #fecaca; background: rgb(127 29 29 / 34%); border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }\n.footer-row { margin-top: 18px; color: #64748b; font-size: 12px; }\n@media (max-width: 780px) {\n .auth-status { top: 16px; right: 16px; }\n .auth-shell { width: min(100% - 32px, 520px); min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 92px 0 34px; }\n .hero-copy { max-width: none; }\n .brand-row { margin-bottom: 22px; }\n .mark { width: 48px; height: 48px; }\n .mark svg { width: 26px; height: 26px; }\n h1 { font-size: 30px; }\n .hero-copy p { font-size: 15px; }\n .login-panel { padding: 26px; }\n h2 { font-size: 23px; }\n}\n@media (max-width: 420px) {\n .auth-shell { width: min(100% - 24px, 420px); padding-top: 82px; }\n .auth-status { min-height: 32px; padding: 0 11px; font-size: 12px; }\n .brand-title { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n h1 { font-size: 27px; }\n .login-panel { padding: 22px; }\n .secondary-provider-list { grid-template-columns: 1fr; }\n}\n";
2
2
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/hosted-service/login-page/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,mhOA2V3B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/hosted-service/login-page/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oxMA6F3B,CAAC"}
@@ -1,24 +1,10 @@
1
1
  export const loginPageStyles = `
2
2
  :root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
3
3
  * { box-sizing: border-box; }
4
- body {
5
- margin: 0;
6
- min-height: 100vh;
7
- overflow-x: hidden;
8
- background: #08131f;
9
- color: #f8fafc;
10
- }
11
- body::before,
12
- body::after {
13
- content: "";
14
- position: fixed;
15
- inset: 0;
16
- pointer-events: none;
17
- }
4
+ body { margin: 0; min-height: 100vh; overflow-x: hidden; background: #08131f; color: #f8fafc; }
5
+ body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
18
6
  body::before {
19
- background:
20
- url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82")
21
- center / cover no-repeat;
7
+ background: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82") center / cover no-repeat;
22
8
  transform: scale(1.02);
23
9
  }
24
10
  body::after {
@@ -26,324 +12,84 @@ body::after {
26
12
  linear-gradient(90deg, rgb(7 18 32 / 92%) 0%, rgb(9 31 45 / 78%) 48%, rgb(14 111 100 / 72%) 100%),
27
13
  linear-gradient(180deg, rgb(5 12 22 / 16%) 0%, rgb(5 12 22 / 56%) 100%);
28
14
  }
29
- a {
30
- min-height: 44px;
31
- display: flex;
32
- align-items: center;
33
- justify-content: center;
34
- border-radius: 6px;
35
- text-decoration: none;
36
- font-weight: 700;
37
- }
15
+ a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; text-decoration: none; font-weight: 700; }
38
16
  .auth-status {
39
- position: fixed;
40
- z-index: 2;
41
- top: 24px;
42
- right: 24px;
43
- min-height: 36px;
44
- display: inline-flex;
45
- align-items: center;
46
- padding: 0 14px;
47
- border: 1px solid rgb(148 163 184 / 24%);
48
- border-radius: 8px;
49
- background: rgb(15 23 42 / 74%);
50
- box-shadow: 0 14px 32px rgb(0 0 0 / 22%);
51
- color: #e2e8f0;
52
- font-size: 13px;
17
+ position: fixed; z-index: 2; top: 24px; right: 24px; min-height: 36px; display: inline-flex; align-items: center;
18
+ padding: 0 14px; border: 1px solid rgb(148 163 184 / 24%); border-radius: 8px; background: rgb(15 23 42 / 74%);
19
+ box-shadow: 0 14px 32px rgb(0 0 0 / 22%); color: #e2e8f0; font-size: 13px;
53
20
  }
54
21
  .auth-shell {
55
- position: relative;
56
- z-index: 1;
57
- min-height: 100vh;
58
- width: min(1280px, calc(100vw - 48px));
59
- margin: 0 auto;
60
- display: grid;
61
- grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
62
- align-items: center;
63
- gap: 72px;
64
- padding: 72px 0;
65
- }
66
- .hero-copy {
67
- max-width: 760px;
68
- }
69
- .brand-row {
70
- display: flex;
71
- align-items: center;
72
- gap: 12px;
73
- margin-bottom: 30px;
22
+ position: relative; z-index: 1; min-height: 100vh; width: min(1280px, calc(100vw - 48px)); margin: 0 auto;
23
+ display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: 72px; padding: 72px 0;
74
24
  }
25
+ .hero-copy { max-width: 760px; }
26
+ .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
75
27
  .mark {
76
- width: 56px;
77
- height: 56px;
78
- display: grid;
79
- place-items: center;
80
- border-radius: 8px;
81
- background: linear-gradient(135deg, #4f8cff 0%, #22d4b8 100%);
82
- color: #fff;
83
- box-shadow: 0 16px 32px rgb(34 211 238 / 18%);
84
- color: #fff;
28
+ width: 56px; height: 56px; display: grid; place-items: center; border-radius: 8px;
29
+ background: linear-gradient(135deg, #4f8cff 0%, #22d4b8 100%); color: #fff; box-shadow: 0 16px 32px rgb(34 211 238 / 18%);
85
30
  }
86
31
  .mark svg { width: 30px; height: 30px; display: block; }
87
32
  .brand-title {
88
- display: inline-flex;
89
- align-items: center;
90
- min-height: 28px;
91
- padding: 0 10px;
92
- border-radius: 6px;
93
- background: rgb(15 23 42 / 48%);
94
- color: #bfdbfe;
95
- font-size: 14px;
96
- font-weight: 700;
97
- }
98
- .hero-kicker {
99
- margin-bottom: 16px;
100
- color: #67e8f9;
101
- font-size: 14px;
102
- font-weight: 800;
103
- }
104
- h1 {
105
- max-width: 720px;
106
- margin: 0 0 18px;
107
- color: #fff;
108
- font-size: 40px;
109
- line-height: 1.18;
110
- font-weight: 800;
111
- }
112
- .hero-copy p {
113
- max-width: 680px;
114
- margin: 0;
115
- color: #e2e8f0;
116
- font-size: 16px;
117
- line-height: 1.8;
118
- font-weight: 600;
33
+ display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 6px;
34
+ background: rgb(15 23 42 / 48%); color: #bfdbfe; font-size: 14px; font-weight: 700;
119
35
  }
36
+ .hero-kicker { margin-bottom: 16px; color: #67e8f9; font-size: 14px; font-weight: 800; }
37
+ h1 { max-width: 720px; margin: 0 0 18px; color: #fff; font-size: 40px; line-height: 1.18; font-weight: 800; }
38
+ .hero-copy p { max-width: 680px; margin: 0; color: #e2e8f0; font-size: 16px; line-height: 1.8; font-weight: 600; }
120
39
  .login-panel {
121
- width: 100%;
122
- border: 1px solid rgb(148 163 184 / 18%);
123
- border-radius: 8px;
124
- background: rgb(15 23 42 / 92%);
125
- box-shadow: 0 26px 70px rgb(0 0 0 / 38%);
126
- padding: 34px;
127
- }
128
- .login-kicker {
129
- margin-bottom: 8px;
130
- color: #93c5fd;
131
- font-size: 13px;
132
- font-weight: 800;
133
- }
134
- h2 {
135
- margin: 0 0 14px;
136
- color: #f8fafc;
137
- font-size: 26px;
138
- line-height: 1.25;
139
- font-weight: 800;
140
- }
141
- .login-panel p {
142
- margin: 0 0 24px;
143
- color: #aebccc;
144
- font-size: 14px;
145
- line-height: 1.7;
146
- font-weight: 600;
147
- }
148
- .provider-list {
149
- display: grid;
150
- gap: 14px;
40
+ width: 100%; border: 1px solid rgb(148 163 184 / 18%); border-radius: 8px; background: rgb(15 23 42 / 92%);
41
+ box-shadow: 0 26px 70px rgb(0 0 0 / 38%); padding: 34px;
151
42
  }
43
+ .login-kicker { margin-bottom: 8px; color: #93c5fd; font-size: 13px; font-weight: 800; }
44
+ h2 { margin: 0 0 14px; color: #f8fafc; font-size: 26px; line-height: 1.25; font-weight: 800; }
45
+ .login-panel p { margin: 0 0 24px; color: #aebccc; font-size: 14px; line-height: 1.7; font-weight: 600; }
46
+ .provider-list { display: grid; gap: 14px; }
152
47
  .primary-provider {
153
- min-height: 52px;
154
- gap: 10px;
155
- padding: 0 18px;
156
- background: #4f7fe5;
157
- color: #fff;
158
- box-shadow: 0 10px 22px rgb(79 127 229 / 28%);
48
+ min-height: 52px; gap: 10px; padding: 0 18px; background: #4f7fe5; color: #fff; box-shadow: 0 10px 22px rgb(79 127 229 / 28%);
159
49
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
160
50
  }
161
- .primary-provider:hover {
162
- background: #5d8cf1;
163
- box-shadow: 0 16px 30px rgb(79 127 229 / 36%);
164
- transform: translateY(-1px);
165
- }
166
- .primary-provider-icon {
167
- width: 22px;
168
- height: 22px;
169
- display: grid;
170
- place-items: center;
171
- flex: 0 0 auto;
172
- color: #fff;
173
- background: transparent;
174
- border: 0;
175
- }
176
- .primary-provider-icon svg {
177
- width: 21px;
178
- height: 21px;
179
- display: block;
180
- }
181
- .primary-provider .provider-name {
182
- margin: 0;
183
- font-size: inherit;
184
- }
185
- .provider-divider {
186
- display: flex;
187
- align-items: center;
188
- gap: 12px;
189
- color: #7d8da3;
190
- font-size: 12px;
191
- font-weight: 700;
192
- }
193
- .provider-divider::before,
194
- .provider-divider::after {
195
- content: "";
196
- height: 1px;
197
- flex: 1;
198
- background: rgb(148 163 184 / 16%);
199
- }
200
- .secondary-provider-list {
201
- display: grid;
202
- grid-template-columns: repeat(2, minmax(0, 1fr));
203
- gap: 10px;
204
- }
51
+ .primary-provider:hover { background: #5d8cf1; box-shadow: 0 16px 30px rgb(79 127 229 / 36%); transform: translateY(-1px); }
52
+ .primary-provider-icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: transparent; border: 0; }
53
+ .primary-provider-icon svg { width: 21px; height: 21px; display: block; }
54
+ .primary-provider .provider-name { margin: 0; font-size: inherit; }
55
+ .provider-divider { display: flex; align-items: center; gap: 12px; color: #7d8da3; font-size: 12px; font-weight: 700; }
56
+ .provider-divider::before, .provider-divider::after { content: ""; height: 1px; flex: 1; background: rgb(148 163 184 / 16%); }
57
+ .secondary-provider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
205
58
  .provider-option {
206
- min-height: 72px;
207
- flex-direction: column;
208
- gap: 8px;
209
- padding: 12px 10px;
210
- border: 1px solid rgb(148 163 184 / 18%);
211
- color: #e5edf8;
212
- background: rgb(30 41 59 / 62%);
213
- text-align: center;
214
- transition: transform .16s ease, border-color .16s ease, background .16s ease;
215
- }
216
- .provider-option:hover {
217
- border-color: rgb(147 197 253 / 52%);
218
- background: rgb(30 64 94 / 76%);
219
- transform: translateY(-1px);
220
- }
221
- .provider-icon {
222
- width: 30px;
223
- height: 30px;
224
- display: grid;
225
- place-items: center;
226
- border-radius: 6px;
227
- flex: 0 0 auto;
228
- }
229
- .provider-icon svg {
230
- width: 22px;
231
- height: 22px;
232
- display: block;
233
- }
234
- .provider-icon-feishu {
235
- background: transparent;
236
- }
237
- .provider-icon-google {
238
- background: #fff;
239
- border: 1px solid rgb(226 232 240 / 86%);
240
- }
241
- .provider-icon-github {
242
- background: #0b1120;
243
- color: #fff;
244
- }
245
- .provider-name {
246
- max-width: 100%;
247
- font-size: 13px;
248
- white-space: nowrap;
249
- overflow: hidden;
250
- text-overflow: ellipsis;
251
- }
252
- .provider-empty {
253
- border: 1px solid rgb(251 191 36 / 24%);
254
- color: #fde68a;
255
- background: rgb(120 53 15 / 28%);
256
- border-radius: 6px;
257
- padding: 12px 14px;
258
- line-height: 1.6;
259
- font-size: 14px;
260
- }
261
- .dev-link {
262
- min-height: 42px;
263
- margin-top: 12px;
264
- border: 1px solid rgb(148 163 184 / 16%);
265
- background: rgb(15 23 42 / 48%);
266
- color: #cbd5e1;
267
- font-size: 13px;
268
- }
269
- .dev-link:hover {
270
- border-color: rgb(148 163 184 / 34%);
271
- background: rgb(30 41 59 / 72%);
272
- }
273
- .error {
274
- border: 1px solid rgb(248 113 113 / 36%);
275
- color: #fecaca;
276
- background: rgb(127 29 29 / 34%);
277
- border-radius: 6px;
278
- padding: 10px 12px;
279
- margin-bottom: 16px;
280
- }
281
- .footer-row {
282
- margin-top: 18px;
283
- color: #64748b;
284
- font-size: 12px;
285
- }
59
+ min-height: 72px; flex-direction: column; gap: 8px; padding: 12px 10px; border: 1px solid rgb(148 163 184 / 18%);
60
+ color: #e5edf8; background: rgb(30 41 59 / 62%); text-align: center; transition: transform .16s ease, border-color .16s ease, background .16s ease;
61
+ }
62
+ .provider-option:hover { border-color: rgb(147 197 253 / 52%); background: rgb(30 64 94 / 76%); transform: translateY(-1px); }
63
+ .provider-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; flex: 0 0 auto; }
64
+ .provider-icon svg { width: 22px; height: 22px; display: block; }
65
+ .provider-icon-feishu { background: transparent; }
66
+ .provider-icon-google { background: #fff; border: 1px solid rgb(226 232 240 / 86%); }
67
+ .provider-icon-github { background: #0b1120; color: #fff; }
68
+ .provider-name { max-width: 100%; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
69
+ .provider-empty { border: 1px solid rgb(251 191 36 / 24%); color: #fde68a; background: rgb(120 53 15 / 28%); border-radius: 6px; padding: 12px 14px; line-height: 1.6; font-size: 14px; }
70
+ .dev-link { min-height: 42px; margin-top: 12px; border: 1px solid rgb(148 163 184 / 16%); background: rgb(15 23 42 / 48%); color: #cbd5e1; font-size: 13px; }
71
+ .dev-link:hover { border-color: rgb(148 163 184 / 34%); background: rgb(30 41 59 / 72%); }
72
+ .error { border: 1px solid rgb(248 113 113 / 36%); color: #fecaca; background: rgb(127 29 29 / 34%); border-radius: 6px; padding: 10px 12px; margin-bottom: 16px; }
73
+ .footer-row { margin-top: 18px; color: #64748b; font-size: 12px; }
286
74
  @media (max-width: 780px) {
287
- .auth-status {
288
- top: 16px;
289
- right: 16px;
290
- }
291
- .auth-shell {
292
- width: min(100% - 32px, 520px);
293
- min-height: auto;
294
- grid-template-columns: 1fr;
295
- gap: 30px;
296
- padding: 92px 0 34px;
297
- }
298
- .hero-copy {
299
- max-width: none;
300
- }
301
- .brand-row {
302
- margin-bottom: 22px;
303
- }
304
- .mark {
305
- width: 48px;
306
- height: 48px;
307
- }
75
+ .auth-status { top: 16px; right: 16px; }
76
+ .auth-shell { width: min(100% - 32px, 520px); min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 92px 0 34px; }
77
+ .hero-copy { max-width: none; }
78
+ .brand-row { margin-bottom: 22px; }
79
+ .mark { width: 48px; height: 48px; }
308
80
  .mark svg { width: 26px; height: 26px; }
309
- h1 {
310
- font-size: 30px;
311
- }
312
- .hero-copy p {
313
- font-size: 15px;
314
- }
315
- .login-panel {
316
- padding: 26px;
317
- }
318
- h2 {
319
- font-size: 23px;
320
- }
81
+ h1 { font-size: 30px; }
82
+ .hero-copy p { font-size: 15px; }
83
+ .login-panel { padding: 26px; }
84
+ h2 { font-size: 23px; }
321
85
  }
322
86
  @media (max-width: 420px) {
323
- .auth-shell {
324
- width: min(100% - 24px, 420px);
325
- padding-top: 82px;
326
- }
327
- .auth-status {
328
- min-height: 32px;
329
- padding: 0 11px;
330
- font-size: 12px;
331
- }
332
- .brand-title {
333
- max-width: 230px;
334
- overflow: hidden;
335
- text-overflow: ellipsis;
336
- white-space: nowrap;
337
- }
338
- h1 {
339
- font-size: 27px;
340
- }
341
- .login-panel {
342
- padding: 22px;
343
- }
344
- .secondary-provider-list {
345
- grid-template-columns: 1fr;
346
- }
87
+ .auth-shell { width: min(100% - 24px, 420px); padding-top: 82px; }
88
+ .auth-status { min-height: 32px; padding: 0 11px; font-size: 12px; }
89
+ .brand-title { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
90
+ h1 { font-size: 27px; }
91
+ .login-panel { padding: 22px; }
92
+ .secondary-provider-list { grid-template-columns: 1fr; }
347
93
  }
348
94
  `;
349
95
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/hosted-service/login-page/styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2V9B,CAAC"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/hosted-service/login-page/styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6F9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-tool/unified-auth-hosted-service",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "description": "Embedded and standalone hosted auth runtime for Unified Auth.",
6
6
  "main": "./dist/index.js",