auth.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .pl-auth-mask {
  2. position: fixed;
  3. inset: 0;
  4. z-index: 400;
  5. display: grid;
  6. place-items: center;
  7. padding: 24px;
  8. background: rgba(23, 20, 15, 0.5);
  9. backdrop-filter: blur(6px);
  10. }
  11. .pl-auth-mask[hidden] { display: none; }
  12. .pl-auth-card {
  13. width: min(400px, 100%);
  14. background: var(--white, #fffdf8);
  15. border: 1px solid var(--line, #e2dacb);
  16. border-radius: 20px;
  17. padding: 26px 26px 20px;
  18. box-shadow: 0 30px 70px rgba(23, 20, 15, 0.28);
  19. position: relative;
  20. animation: plAuthIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  21. }
  22. @keyframes plAuthIn {
  23. from { opacity: 0; transform: translateY(12px) scale(0.98); }
  24. to { opacity: 1; transform: none; }
  25. }
  26. .pl-auth-close {
  27. position: absolute;
  28. right: 14px;
  29. top: 14px;
  30. width: 30px;
  31. height: 30px;
  32. border-radius: 50%;
  33. color: var(--muted, #7d7466);
  34. display: grid;
  35. place-items: center;
  36. font-size: 13px;
  37. }
  38. .pl-auth-close:hover { background: var(--paper, #f6f2e9); color: var(--ink, #17140f); }
  39. .pl-auth-brand {
  40. font-size: 10px;
  41. letter-spacing: 0.18em;
  42. color: var(--accent, var(--accent));
  43. font-family: var(--font-mono, "SF Mono", Menlo, monospace);
  44. }
  45. .pl-auth-brand img { height: 20px; width: auto; display: block; }
  46. .pl-auth-brand em {
  47. font-style: normal;
  48. color: var(--muted-2, #a79d8d);
  49. margin-left: 4px;
  50. }
  51. .pl-auth-card h2 {
  52. margin-top: 10px;
  53. font-size: 24px;
  54. letter-spacing: -0.02em;
  55. }
  56. .pl-auth-sub {
  57. margin-top: 6px;
  58. font-size: 12px;
  59. color: var(--muted, #7d7466);
  60. line-height: 1.6;
  61. }
  62. .pl-auth-label {
  63. display: block;
  64. margin: 16px 0 7px;
  65. font-size: 11px;
  66. font-weight: 600;
  67. color: var(--muted, #7d7466);
  68. }
  69. .pl-auth-input {
  70. width: 100%;
  71. height: 42px;
  72. border: 1px solid var(--line-2, #d5cbb9);
  73. border-radius: 10px;
  74. background: var(--white, #fffdf8);
  75. padding: 0 12px;
  76. font-size: 14px;
  77. color: var(--ink, #17140f);
  78. outline: none;
  79. transition: border-color 0.2s, box-shadow 0.2s;
  80. }
  81. .pl-auth-input:focus {
  82. border-color: var(--ink, #17140f);
  83. box-shadow: 0 0 0 3px rgba(23, 20, 15, 0.06);
  84. }
  85. .pl-auth-code-row {
  86. display: flex;
  87. gap: 8px;
  88. }
  89. .pl-auth-code-row .pl-auth-input { flex: 1; }
  90. .pl-auth-send {
  91. flex: none;
  92. height: 42px;
  93. padding: 0 12px;
  94. border: 1px solid var(--line-2, #d5cbb9);
  95. border-radius: 10px;
  96. font-size: 11.5px;
  97. font-weight: 600;
  98. color: var(--ink, #17140f);
  99. background: var(--paper-2, #faf6ec);
  100. transition: background 0.2s, opacity 0.2s;
  101. }
  102. .pl-auth-send:hover:not(:disabled) { background: var(--paper, #f6f2e9); }
  103. .pl-auth-send:disabled { opacity: 0.55; cursor: default; }
  104. .pl-auth-hint {
  105. margin-top: 10px;
  106. font-size: 10.5px;
  107. line-height: 1.6;
  108. color: var(--muted-2, #a79d8d);
  109. }
  110. .pl-auth-error {
  111. margin-top: 10px;
  112. font-size: 11px;
  113. color: #d63d13;
  114. }
  115. .pl-auth-submit {
  116. width: 100%;
  117. height: 44px;
  118. margin-top: 14px;
  119. border-radius: 10px;
  120. background: var(--accent, var(--accent));
  121. color: #fff;
  122. font-size: 13px;
  123. font-weight: 650;
  124. letter-spacing: 0.02em;
  125. box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.24);
  126. transition: transform 0.15s, box-shadow 0.15s;
  127. }
  128. .pl-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(var(--accent-rgb), 0.28); }
  129. .pl-auth-submit:active { transform: translateY(0); }
  130. .pl-auth-terms {
  131. margin-top: 12px;
  132. text-align: center;
  133. font-size: 9.5px;
  134. color: var(--muted-2, #a79d8d);
  135. }
  136. .pl-auth-actions {
  137. display: flex;
  138. gap: 10px;
  139. margin-top: 18px;
  140. }
  141. .pl-auth-actions .pl-auth-submit {
  142. flex: 1;
  143. width: auto;
  144. margin-top: 0;
  145. }
  146. .pl-auth-cancel {
  147. flex: 1;
  148. height: 44px;
  149. border-radius: 10px;
  150. border: 1px solid var(--line-2, #d5cbb9);
  151. background: var(--paper-2, #faf6ec);
  152. color: var(--ink-2, #2c271f);
  153. font-size: 13px;
  154. font-weight: 600;
  155. transition: background 0.2s;
  156. }
  157. .pl-auth-cancel:hover { background: var(--paper, #f6f2e9); }
  158. .pl-auth-entry {
  159. position: relative;
  160. display: inline-flex;
  161. }
  162. .pl-auth-btn {
  163. height: 32px;
  164. padding: 0 13px;
  165. border: 1px solid var(--line, #e2dacb);
  166. border-radius: 8px;
  167. background: var(--white, #fffdf8);
  168. color: var(--ink-2, #2c271f);
  169. font-size: 11.5px;
  170. font-weight: 600;
  171. transition: background 0.2s, border-color 0.2s;
  172. }
  173. .pl-auth-btn:hover { background: var(--paper, #f6f2e9); border-color: var(--line-2, #d5cbb9); }
  174. .pl-auth-btn.on { border-color: var(--accent, var(--accent)); color: var(--accent, var(--accent)); }
  175. .pl-auth-menu {
  176. position: absolute;
  177. top: calc(100% + 8px);
  178. right: 0;
  179. min-width: 160px;
  180. background: var(--white, #fffdf8);
  181. border: 1px solid var(--line, #e2dacb);
  182. border-radius: 10px;
  183. box-shadow: 0 14px 34px rgba(23, 20, 15, 0.16);
  184. padding: 8px;
  185. z-index: 320;
  186. }
  187. .pl-auth-menu[hidden] { display: none; }
  188. .pl-auth-name {
  189. display: block;
  190. padding: 6px 8px 8px;
  191. font-size: 10.5px;
  192. color: var(--muted, #7d7466);
  193. border-bottom: 1px solid var(--line, #e2dacb);
  194. margin-bottom: 5px;
  195. white-space: nowrap;
  196. }
  197. .pl-auth-logout {
  198. display: block;
  199. width: 100%;
  200. text-align: left;
  201. padding: 7px 8px;
  202. border-radius: 6px;
  203. font-size: 11.5px;
  204. color: var(--ink, #17140f);
  205. }
  206. .pl-auth-logout:hover { background: #fff0ec; color: #d63d13; }
  207. body.pl-auth-open { overflow: hidden; }
  208. .header-actions .header-link.on { color: var(--accent, var(--accent)); }
  209. @media (max-width: 760px) {
  210. .pl-auth-card { padding: 22px 20px 18px; }
  211. .studio-actions .pl-auth-entry { display: none; }
  212. }
  213. button.header-link {
  214. background: none;
  215. border: 0;
  216. padding: 0;
  217. font-family: inherit;
  218. cursor: pointer;
  219. }