auth.css 5.2 KB

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