#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
changes to the login and signup, similar to in the saas repo (#6577)
EthanHealy01f15e405759ce
diff --git a/frontend/editor/public/locales/en-GB/translation.toml b/frontend/editor/public/locales/en-GB/translation.tomlindex 39db57af9e..71c77f866b 100644--- a/frontend/editor/public/locales/en-GB/translation.toml+++ b/frontend/editor/public/locales/en-GB/translation.toml@@ -4471,7 +4471,7 @@ alreadyHaveAccount = "Already have an account?"choosePassword = "Choose a password"confirmPassword = "Confirm password"confirmPasswordPlaceholder = "Re-enter your password"-createAccount = "Create Account"+createAccount = "Create account"creating = "Creating Account..."email = "Email address"emailPlaceholder = "Enter your email address"@@ -4554,6 +4554,7 @@ sending = "Sending…"sendMagicLink = "Send Magic Link"sendResetLink = "Send reset link"sessionExpired = "Your session has expired. Please sign in again."+createAccount = "Create an account"signin = "Sign in"signInAnonymously = "Sign Up as a Guest"signingIn = "Signing in..."@@ -6885,6 +6886,8 @@ passwordsDoNotMatch = "Passwords do not match"passwordTooShort = "Password must be at least 6 characters long"pleaseFillAllFields = "Please fill in all fields"signUp = "Sign Up"+signUpWith = "Sign up with"+skip = "Skip"subtitle = "Join Stirling PDF to get started"title = "Create an account"unexpectedError = "Unexpected error: {{message}}"diff --git a/frontend/editor/public/modern-logo/LoginDarkModeHeader.svg b/frontend/editor/public/modern-logo/LoginDarkModeHeader.svgnew file mode 100644index 0000000000..59d84449fc--- /dev/null+++ b/frontend/editor/public/modern-logo/LoginDarkModeHeader.svg@@ -0,0 +1,5 @@+<svg width="186" height="142" viewBox="0 0 186 142" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M68.4465 39.2332L115.936 1.52654e-05L115.937 36.6394L68.4465 75.8726L68.4465 39.2332Z" fill="white" fill-opacity="0.57"/>+<path d="M93.4793 41.9184L141.026 2.63882L141.026 39.3217L93.4793 78.6013L93.4793 41.9184Z" fill="white"/>+<path d="M10.1559 127.343C8.31854 127.343 6.74121 127.083 5.42388 126.563C4.14121 126.043 3.15321 125.125 2.45988 123.807C1.76654 122.49 1.41988 120.635 1.41988 118.243V116.423C2.49454 116.423 3.55188 116.423 4.59188 116.423C5.63188 116.423 6.67188 116.423 7.71188 116.423V118.763C7.71188 120.046 7.81588 121.034 8.02388 121.727C8.23188 122.386 8.52654 122.854 8.90788 123.131C9.28921 123.374 9.73988 123.495 10.2599 123.495C11.0572 123.495 11.6812 123.218 12.1319 122.663C12.6172 122.074 12.8599 120.947 12.8599 119.283C12.8599 118.001 12.6519 117.047 12.2359 116.423C11.8545 115.765 11.2305 115.245 10.3639 114.863C9.49721 114.447 8.38788 113.945 7.03587 113.355C5.82254 112.835 4.81721 112.211 4.01988 111.483C3.22254 110.755 2.63321 109.837 2.25188 108.727C1.87054 107.618 1.67988 106.266 1.67988 104.671C1.67988 102.661 1.93988 101.031 2.45988 99.7835C3.01454 98.5355 3.91588 97.6342 5.16388 97.0795C6.44654 96.4902 8.16254 96.1955 10.3119 96.1955C13.0852 96.1955 15.1999 96.8022 16.6559 98.0155C18.1465 99.1942 18.8919 100.979 18.8919 103.371V107.063C17.8865 107.063 16.8812 107.063 15.8759 107.063C14.9052 107.063 13.8999 107.063 12.8599 107.063V105.191C12.8599 103.631 12.6692 102.539 12.2879 101.915C11.9412 101.291 11.2999 100.979 10.3639 100.979C9.46254 100.979 8.82121 101.257 8.43988 101.811C8.05854 102.366 7.86788 103.267 7.86788 104.515C7.86788 105.659 8.09321 106.561 8.54388 107.219C9.02921 107.843 9.63588 108.329 10.3639 108.675C11.0919 108.987 11.8719 109.299 12.7039 109.611C14.2292 110.201 15.4772 110.807 16.4479 111.431C17.4185 112.021 18.1292 112.853 18.5799 113.927C19.0305 114.967 19.2559 116.475 19.2559 118.451C19.2559 120.67 18.8745 122.438 18.1119 123.755C17.3839 125.038 16.3265 125.957 14.9399 126.511C13.5879 127.066 11.9932 127.343 10.1559 127.343ZM30.0524 127.135C29.255 127.135 28.4577 127.066 27.6604 126.927C26.863 126.789 26.1524 126.529 25.5284 126.147C24.9044 125.731 24.4017 125.159 24.0204 124.431C23.639 123.669 23.4484 122.663 23.4484 121.415V104.723H21.0044V101.759L23.9684 101.239L24.8004 96.5075H29.3764V101.239H34.2644V104.723H29.3764V120.375C29.3764 121.103 29.515 121.762 29.7924 122.351C30.0697 122.906 30.6937 123.183 31.6644 123.183C32.115 123.183 32.635 123.166 33.2244 123.131C33.8137 123.062 34.1604 123.027 34.2644 123.027V126.615C34.1604 126.615 33.675 126.702 32.8084 126.875C31.9764 127.049 31.0577 127.135 30.0524 127.135ZM36.8303 126.979V101.239H42.7583V126.979H36.8303ZM39.7943 98.3795C39.0316 98.3795 38.3729 98.1195 37.8183 97.5995C37.2636 97.0448 36.9863 96.4035 36.9863 95.6755C36.9863 94.9128 37.2636 94.2715 37.8183 93.7515C38.3729 93.2315 39.0316 92.9715 39.7943 92.9715C40.5569 92.9715 41.2156 93.2315 41.7702 93.7515C42.3596 94.2715 42.6543 94.9128 42.6543 95.6755C42.6543 96.4035 42.3596 97.0448 41.7702 97.5995C41.2156 98.1195 40.5569 98.3795 39.7943 98.3795ZM46.6818 126.979V101.239H51.7258L52.2458 104.307C52.5578 103.545 53.0258 102.938 53.6498 102.487C54.2738 102.002 54.9325 101.673 55.6258 101.499C56.7698 101.014 57.9658 100.893 59.2138 101.135V105.711C59.1445 105.677 58.8671 105.642 58.3818 105.607C57.9311 105.538 57.4111 105.538 56.8218 105.607C56.2325 105.642 55.7298 105.781 55.3138 106.023C54.4471 106.335 53.7711 106.873 53.2858 107.635C52.8351 108.398 52.6098 109.317 52.6098 110.391V126.979H46.6818ZM61.3068 126.979V94.1155H67.2348V126.979H61.3068ZM71.1584 126.979V101.239H77.0864V126.979H71.1584ZM74.1224 98.3795C73.3597 98.3795 72.701 98.1195 72.1464 97.5995C71.5917 97.0448 71.3144 96.4035 71.3144 95.6755C71.3144 94.9128 71.5917 94.2715 72.1464 93.7515C72.701 93.2315 73.3597 92.9715 74.1224 92.9715C74.885 92.9715 75.5437 93.2315 76.0984 93.7515C76.6877 94.2715 76.9824 94.9128 76.9824 95.6755C76.9824 96.4035 76.6877 97.0448 76.0984 97.5995C75.5437 98.1195 74.885 98.3795 74.1224 98.3795ZM81.0099 126.979V101.239H86.0539L86.5739 104.255C86.8859 103.215 87.4926 102.366 88.3939 101.707C89.3299 101.049 90.3526 100.719 91.4619 100.719C93.1259 100.719 94.3739 101.014 95.2059 101.603C96.0379 102.158 96.5926 102.955 96.8699 103.995C97.1819 105.001 97.3379 106.197 97.3379 107.583V126.979H91.4099V107.947C91.4099 107.531 91.3926 107.15 91.3579 106.803C91.3233 106.422 91.2193 106.093 91.0459 105.815C90.9073 105.538 90.6993 105.33 90.4219 105.191C90.1446 105.018 89.7286 104.931 89.1739 104.931C88.7579 104.931 88.3939 105.018 88.0819 105.191C87.7699 105.33 87.5273 105.503 87.3539 105.711C87.1806 105.919 87.0419 106.11 86.9379 106.283V126.979H81.0099ZM108.563 133.167C108.077 133.167 107.488 133.15 106.795 133.115C106.101 133.081 105.408 133.029 104.715 132.959C104.056 132.89 103.484 132.821 102.999 132.751C102.548 132.717 102.271 132.682 102.167 132.647V129.475C102.617 129.545 103.293 129.614 104.195 129.683C105.096 129.787 105.859 129.839 106.483 129.839C107.037 129.839 107.557 129.787 108.043 129.683C108.563 129.614 109.013 129.441 109.395 129.163C109.811 128.921 110.14 128.539 110.383 128.019C110.625 127.534 110.747 126.875 110.747 126.043V122.351C110.573 122.767 110.313 123.235 109.967 123.755C109.655 124.241 109.187 124.657 108.563 125.003C107.939 125.35 107.055 125.523 105.911 125.523C105.079 125.523 104.316 125.437 103.623 125.263C102.964 125.055 102.392 124.691 101.907 124.171C101.456 123.617 101.092 122.837 100.815 121.831C100.537 120.791 100.399 119.439 100.399 117.775V107.271C100.399 105.087 100.849 103.458 101.751 102.383C102.687 101.274 104.091 100.719 105.963 100.719C107.072 100.719 107.956 100.858 108.615 101.135C109.308 101.413 109.863 101.811 110.279 102.331C110.695 102.817 111.024 103.389 111.267 104.047L110.487 104.151L111.371 101.239H116.675V123.131C116.675 124.379 116.553 125.61 116.311 126.823C116.103 128.002 115.721 129.059 115.167 129.995C114.612 130.966 113.797 131.729 112.723 132.283C111.683 132.873 110.296 133.167 108.563 133.167ZM108.459 121.987C109.048 121.987 109.499 121.849 109.811 121.571C110.157 121.259 110.383 120.843 110.487 120.323C110.625 119.769 110.695 119.197 110.695 118.607V105.867C110.625 105.694 110.504 105.521 110.331 105.347C110.157 105.174 109.915 105.018 109.603 104.879C109.325 104.741 108.927 104.671 108.407 104.671C107.713 104.671 107.193 104.879 106.847 105.295C106.5 105.677 106.327 106.405 106.327 107.479V119.335C106.327 119.925 106.396 120.41 106.535 120.791C106.673 121.138 106.847 121.398 107.055 121.571C107.297 121.745 107.54 121.866 107.783 121.935C108.025 121.97 108.251 121.987 108.459 121.987ZM129.258 126.979V96.2475H140.178C142.224 96.2475 143.766 96.7155 144.806 97.6515C145.881 98.5528 146.418 99.8182 146.418 101.447V106.751C146.418 108.138 146.245 109.438 145.898 110.651C145.552 111.83 144.928 112.783 144.026 113.511C143.125 114.239 141.825 114.603 140.126 114.603H135.55V126.979H129.258ZM135.55 111.275H137.89C138.722 111.275 139.346 110.877 139.762 110.079C140.178 109.282 140.386 107.965 140.386 106.127V104.047C140.386 102.418 140.213 101.257 139.866 100.563C139.52 99.8702 139.017 99.5235 138.358 99.5235H135.55V111.275ZM149.672 126.979V96.2475H160.436C161.892 96.2475 163.088 96.4555 164.024 96.8715C164.995 97.2875 165.706 97.9288 166.156 98.7955C166.642 99.6275 166.884 100.685 166.884 101.967V120.375C166.884 122.074 166.59 123.409 166 124.379C165.411 125.35 164.562 126.026 163.452 126.407C162.378 126.789 161.095 126.979 159.604 126.979H149.672ZM155.964 123.859H158.616C159.31 123.859 159.847 123.651 160.228 123.235C160.644 122.819 160.852 122.039 160.852 120.895V102.643C160.852 101.499 160.644 100.719 160.228 100.303C159.847 99.8875 159.31 99.6795 158.616 99.6795H155.964V123.859ZM170.899 126.979V96.2475H185.043V100.511H177.191V108.727H183.847V113.459H177.191V126.979H170.899Z" fill="white"/>+</svg>diff --git a/frontend/editor/public/modern-logo/LoginLightModeHeader.svg b/frontend/editor/public/modern-logo/LoginLightModeHeader.svgnew file mode 100644index 0000000000..6b7c6fa8cd--- /dev/null+++ b/frontend/editor/public/modern-logo/LoginLightModeHeader.svg@@ -0,0 +1,6 @@+<svg width="186" height="142" viewBox="0 0 186 142" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M68.4465 39.2332L115.936 1.56549e-05L115.937 36.6394L68.4465 75.8726L68.4465 39.2332Z" fill="#AD7373"/>+<path d="M93.4793 41.9182L141.026 2.63857L141.026 39.3214L93.4793 78.6011L93.4793 41.9182Z" fill="#8E3131"/>+<path d="M10.1559 127.343C8.31854 127.343 6.74121 127.083 5.42388 126.563C4.14121 126.043 3.15321 125.125 2.45988 123.807C1.76654 122.49 1.41988 120.635 1.41988 118.243V116.423C2.49454 116.423 3.55188 116.423 4.59188 116.423C5.63188 116.423 6.67188 116.423 7.71188 116.423V118.763C7.71188 120.046 7.81588 121.034 8.02388 121.727C8.23188 122.386 8.52654 122.854 8.90788 123.131C9.28921 123.374 9.73988 123.495 10.2599 123.495C11.0572 123.495 11.6812 123.218 12.1319 122.663C12.6172 122.074 12.8599 120.947 12.8599 119.283C12.8599 118.001 12.6519 117.047 12.2359 116.423C11.8545 115.765 11.2305 115.245 10.3639 114.863C9.49721 114.447 8.38788 113.945 7.03587 113.355C5.82254 112.835 4.81721 112.211 4.01988 111.483C3.22254 110.755 2.63321 109.837 2.25188 108.727C1.87054 107.618 1.67988 106.266 1.67988 104.671C1.67988 102.661 1.93988 101.031 2.45988 99.7835C3.01454 98.5355 3.91588 97.6342 5.16388 97.0795C6.44654 96.4902 8.16254 96.1955 10.3119 96.1955C13.0852 96.1955 15.1999 96.8022 16.6559 98.0155C18.1465 99.1942 18.8919 100.979 18.8919 103.371V107.063C17.8865 107.063 16.8812 107.063 15.8759 107.063C14.9052 107.063 13.8999 107.063 12.8599 107.063V105.191C12.8599 103.631 12.6692 102.539 12.2879 101.915C11.9412 101.291 11.2999 100.979 10.3639 100.979C9.46254 100.979 8.82121 101.257 8.43988 101.811C8.05854 102.366 7.86788 103.267 7.86788 104.515C7.86788 105.659 8.09321 106.561 8.54388 107.219C9.02921 107.843 9.63588 108.329 10.3639 108.675C11.0919 108.987 11.8719 109.299 12.7039 109.611C14.2292 110.201 15.4772 110.807 16.4479 111.431C17.4185 112.021 18.1292 112.853 18.5799 113.927C19.0305 114.967 19.2559 116.475 19.2559 118.451C19.2559 120.67 18.8745 122.438 18.1119 123.755C17.3839 125.038 16.3265 125.957 14.9399 126.511C13.5879 127.066 11.9932 127.343 10.1559 127.343ZM30.0524 127.135C29.255 127.135 28.4577 127.066 27.6604 126.927C26.863 126.789 26.1524 126.529 25.5284 126.147C24.9044 125.731 24.4017 125.159 24.0204 124.431C23.639 123.669 23.4484 122.663 23.4484 121.415V104.723H21.0044V101.759L23.9684 101.239L24.8004 96.5075H29.3764V101.239H34.2644V104.723H29.3764V120.375C29.3764 121.103 29.515 121.762 29.7924 122.351C30.0697 122.906 30.6937 123.183 31.6644 123.183C32.115 123.183 32.635 123.166 33.2244 123.131C33.8137 123.062 34.1604 123.027 34.2644 123.027V126.615C34.1604 126.615 33.675 126.702 32.8084 126.875C31.9764 127.049 31.0577 127.135 30.0524 127.135ZM36.8303 126.979V101.239H42.7583V126.979H36.8303ZM39.7943 98.3795C39.0316 98.3795 38.3729 98.1195 37.8183 97.5995C37.2636 97.0448 36.9863 96.4035 36.9863 95.6755C36.9863 94.9128 37.2636 94.2715 37.8183 93.7515C38.3729 93.2315 39.0316 92.9715 39.7943 92.9715C40.5569 92.9715 41.2156 93.2315 41.7702 93.7515C42.3596 94.2715 42.6543 94.9128 42.6543 95.6755C42.6543 96.4035 42.3596 97.0448 41.7702 97.5995C41.2156 98.1195 40.5569 98.3795 39.7943 98.3795ZM46.6818 126.979V101.239H51.7258L52.2458 104.307C52.5578 103.545 53.0258 102.938 53.6498 102.487C54.2738 102.002 54.9325 101.673 55.6258 101.499C56.7698 101.014 57.9658 100.893 59.2138 101.135V105.711C59.1445 105.677 58.8671 105.642 58.3818 105.607C57.9311 105.538 57.4111 105.538 56.8218 105.607C56.2325 105.642 55.7298 105.781 55.3138 106.023C54.4471 106.335 53.7711 106.873 53.2858 107.635C52.8351 108.398 52.6098 109.317 52.6098 110.391V126.979H46.6818ZM61.3068 126.979V94.1155H67.2348V126.979H61.3068ZM71.1584 126.979V101.239H77.0864V126.979H71.1584ZM74.1224 98.3795C73.3597 98.3795 72.701 98.1195 72.1464 97.5995C71.5917 97.0448 71.3144 96.4035 71.3144 95.6755C71.3144 94.9128 71.5917 94.2715 72.1464 93.7515C72.701 93.2315 73.3597 92.9715 74.1224 92.9715C74.885 92.9715 75.5437 93.2315 76.0984 93.7515C76.6877 94.2715 76.9824 94.9128 76.9824 95.6755C76.9824 96.4035 76.6877 97.0448 76.0984 97.5995C75.5437 98.1195 74.885 98.3795 74.1224 98.3795ZM81.0099 126.979V101.239H86.0539L86.5739 104.255C86.8859 103.215 87.4926 102.366 88.3939 101.707C89.3299 101.049 90.3526 100.719 91.4619 100.719C93.1259 100.719 94.3739 101.014 95.2059 101.603C96.0379 102.158 96.5926 102.955 96.8699 103.995C97.1819 105.001 97.3379 106.197 97.3379 107.583V126.979H91.4099V107.947C91.4099 107.531 91.3926 107.15 91.3579 106.803C91.3233 106.422 91.2193 106.093 91.0459 105.815C90.9073 105.538 90.6993 105.33 90.4219 105.191C90.1446 105.018 89.7286 104.931 89.1739 104.931C88.7579 104.931 88.3939 105.018 88.0819 105.191C87.7699 105.33 87.5273 105.503 87.3539 105.711C87.1806 105.919 87.0419 106.11 86.9379 106.283V126.979H81.0099ZM108.563 133.167C108.077 133.167 107.488 133.15 106.795 133.115C106.101 133.081 105.408 133.029 104.715 132.959C104.056 132.89 103.484 132.821 102.999 132.751C102.548 132.717 102.271 132.682 102.167 132.647V129.475C102.617 129.545 103.293 129.614 104.195 129.683C105.096 129.787 105.859 129.839 106.483 129.839C107.037 129.839 107.557 129.787 108.043 129.683C108.563 129.614 109.013 129.441 109.395 129.163C109.811 128.921 110.14 128.539 110.383 128.019C110.625 127.534 110.747 126.875 110.747 126.043V122.351C110.573 122.767 110.313 123.235 109.967 123.755C109.655 124.241 109.187 124.657 108.563 125.003C107.939 125.35 107.055 125.523 105.911 125.523C105.079 125.523 104.316 125.437 103.623 125.263C102.964 125.055 102.392 124.691 101.907 124.171C101.456 123.617 101.092 122.837 100.815 121.831C100.537 120.791 100.399 119.439 100.399 117.775V107.271C100.399 105.087 100.849 103.458 101.751 102.383C102.687 101.274 104.091 100.719 105.963 100.719C107.072 100.719 107.956 100.858 108.615 101.135C109.308 101.413 109.863 101.811 110.279 102.331C110.695 102.817 111.024 103.389 111.267 104.047L110.487 104.151L111.371 101.239H116.675V123.131C116.675 124.379 116.553 125.61 116.311 126.823C116.103 128.002 115.721 129.059 115.167 129.995C114.612 130.966 113.797 131.729 112.723 132.283C111.683 132.873 110.296 133.167 108.563 133.167ZM108.459 121.987C109.048 121.987 109.499 121.849 109.811 121.571C110.157 121.259 110.383 120.843 110.487 120.323C110.625 119.769 110.695 119.197 110.695 118.607V105.867C110.625 105.694 110.504 105.521 110.331 105.347C110.157 105.174 109.915 105.018 109.603 104.879C109.325 104.741 108.927 104.671 108.407 104.671C107.713 104.671 107.193 104.879 106.847 105.295C106.5 105.677 106.327 106.405 106.327 107.479V119.335C106.327 119.925 106.396 120.41 106.535 120.791C106.673 121.138 106.847 121.398 107.055 121.571C107.297 121.745 107.54 121.866 107.783 121.935C108.025 121.97 108.251 121.987 108.459 121.987Z" fill="black" fill-opacity="0.8"/>+<path d="M129.258 126.979V96.2475H140.178C142.224 96.2475 143.766 96.7155 144.806 97.6515C145.881 98.5528 146.418 99.8182 146.418 101.447V106.751C146.418 108.138 146.245 109.438 145.898 110.651C145.552 111.83 144.928 112.783 144.026 113.511C143.125 114.239 141.825 114.603 140.126 114.603H135.55V126.979H129.258ZM135.55 111.275H137.89C138.722 111.275 139.346 110.877 139.762 110.079C140.178 109.282 140.386 107.965 140.386 106.127V104.047C140.386 102.418 140.213 101.257 139.866 100.563C139.52 99.8702 139.017 99.5235 138.358 99.5235H135.55V111.275ZM149.672 126.979V96.2475H160.436C161.892 96.2475 163.088 96.4555 164.024 96.8715C164.995 97.2875 165.706 97.9288 166.156 98.7955C166.642 99.6275 166.884 100.685 166.884 101.967V120.375C166.884 122.074 166.59 123.409 166 124.379C165.411 125.35 164.562 126.026 163.452 126.407C162.378 126.789 161.095 126.979 159.604 126.979H149.672ZM155.964 123.859H158.616C159.31 123.859 159.847 123.651 160.228 123.235C160.644 122.819 160.852 122.039 160.852 120.895V102.643C160.852 101.499 160.644 100.719 160.228 100.303C159.847 99.8875 159.31 99.6795 158.616 99.6795H155.964V123.859ZM170.899 126.979V96.2475H185.043V100.511H177.191V108.727H183.847V113.459H177.191V126.979H170.899Z" fill="#8E3131"/>+</svg>diff --git a/frontend/editor/src/core/tests/live/authentication-login.spec.ts b/frontend/editor/src/core/tests/live/authentication-login.spec.tsindex 310dd5e6f8..a8a6a75cfa 100644--- a/frontend/editor/src/core/tests/live/authentication-login.spec.ts+++ b/frontend/editor/src/core/tests/live/authentication-login.spec.ts@@ -19,12 +19,7 @@ test.describe("1. Authentication and Login", () => {.first(),).toBeVisible();- // Step 3: Confirm the heading for "Sign In" / "Login" is visible- await expect(- page.getByRole("heading", { name: /sign in|login|masuk/i }),- ).toBeVisible();-- // Step 4: Confirm a "Username" text input field is present and empty+ // Step 3: Confirm a "Username" text input field is present and emptyconst usernameInput = page.locator("#email");await expect(usernameInput).toBeVisible();await expect(usernameInput).toHaveValue("");diff --git a/frontend/editor/src/proprietary/routes/Login.tsx b/frontend/editor/src/proprietary/routes/Login.tsxindex 85c42fce86..c334bef8dc 100644--- a/frontend/editor/src/proprietary/routes/Login.tsx+++ b/frontend/editor/src/proprietary/routes/Login.tsx@@ -17,12 +17,11 @@ import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import AuthLayout from "@app/routes/authShared/AuthLayout";import { useBackendProbe } from "@app/hooks/useBackendProbe";import apiClient from "@app/services/apiClient";-import { BASE_PATH } from "@app/constants/app";+import { BASE_PATH, withBasePath } from "@app/constants/app";import { type OAuthProvider } from "@app/auth/oauthTypes";import { updateSupportedLanguages } from "@app/i18n";// Import login components-import LoginHeader from "@app/routes/login/LoginHeader";import ErrorMessage from "@app/routes/login/ErrorMessage";import EmailPasswordForm from "@app/routes/login/EmailPasswordForm";import OAuthButtons, {@@ -74,7 +73,6 @@ export default function Login() {const autoLoginErrorRecorded = useRef(false);const isUserPassAllowed = loginMethod === "all" || loginMethod === "normal";const isSsoOnlyMode = loginMethod !== "all" && loginMethod !== "normal";- const isSingleSsoOnly = !isUserPassAllowed && enabledProviders.length === 1;const AUTO_LOGIN_ATTEMPTS_KEY = "stirling_sso_auto_login_attempts";const AUTO_LOGIN_ERRORS_KEY = "stirling_sso_auto_login_errors";@@ -461,7 +459,6 @@ export default function Login() {// If backend isn't ready yet, show a lightweight status screen instead of the formif (backendProbe.status !== "up" && !loginDisabled) {- const backendTitle = t("backendStartup.notFoundTitle", "Backend not found");const handleRetry = async () => {const result = await backendProbe.probe();if (result.status === "up") {@@ -471,7 +468,18 @@ export default function Login() {};return (<AuthLayout>- <LoginHeader title={backendTitle} />+ <div className="auth-logo-block">+ <img+ src={withBasePath("/modern-logo/LoginLightModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--light"+ />+ <img+ src={withBasePath("/modern-logo/LoginDarkModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--dark"+ />+ </div><divclassName="auth-section"style={{@@ -555,10 +563,18 @@ export default function Login() {return (<AuthLayout>- <LoginHeader- title={isSingleSsoOnly ? "" : t("login.login") || "Sign in"}- centerOnly={isSingleSsoOnly}- />+ <div className="auth-logo-block">+ <img+ src={withBasePath("/modern-logo/LoginLightModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--light"+ />+ <img+ src={withBasePath("/modern-logo/LoginDarkModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--dark"+ />+ </div>{/* Success message */}{successMessage && (diff --git a/frontend/editor/src/proprietary/routes/Signup.tsx b/frontend/editor/src/proprietary/routes/Signup.tsxindex 28676a0858..9773106c45 100644--- a/frontend/editor/src/proprietary/routes/Signup.tsx+++ b/frontend/editor/src/proprietary/routes/Signup.tsx@@ -5,10 +5,9 @@ import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import { useAuth } from "@app/auth/UseSession";import AuthLayout from "@app/routes/authShared/AuthLayout";import "@app/routes/authShared/auth.css";-import { BASE_PATH } from "@app/constants/app";+import { BASE_PATH, withBasePath } from "@app/constants/app";// Import signup components-import LoginHeader from "@app/routes/login/LoginHeader";import ErrorMessage from "@app/routes/login/ErrorMessage";import DividerWithText from "@app/components/shared/DividerWithText";import SignupForm from "@app/routes/signup/SignupForm";@@ -92,10 +91,18 @@ export default function Signup() {return (<AuthLayout>- <LoginHeader- title={t("signup.title", "Create an account")}- subtitle={t("signup.subtitle", "Join Stirling PDF")}- />+ <div className="auth-logo-block">+ <img+ src={withBasePath("/modern-logo/LoginLightModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--light"+ />+ <img+ src={withBasePath("/modern-logo/LoginDarkModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--dark"+ />+ </div><ErrorMessage error={error} />diff --git a/frontend/editor/src/proprietary/routes/authShared/auth.css b/frontend/editor/src/proprietary/routes/authShared/auth.cssindex e0abf4e7a5..080c280925 100644--- a/frontend/editor/src/proprietary/routes/authShared/auth.css+++ b/frontend/editor/src/proprietary/routes/authShared/auth.css@@ -615,3 +615,90 @@background-color: #af3434 !important;opacity: 0.6 !important;}++/* ── Logo block ─────────────────────────────────────────────────────── */+.auth-logo-block {+ display: flex;+ flex-direction: column;+ align-items: center;+ margin-bottom: 2rem;+ margin-top: 0.5rem;+ animation: authFadeUp 0.4s ease both;+}++.auth-logo-header {+ height: 8rem;+ width: auto;+}++.auth-logo-header--dark {+ display: none;+}++/* ── Page entrance animation ────────────────────────────────────────── */+@keyframes authFadeUp {+ from {+ opacity: 0;+ transform: translateY(12px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+}++/* ── Expandable trigger button state ────────────────────────────────── */+.auth-expandable-trigger {+ transition:+ background-color 180ms ease,+ box-shadow 180ms ease,+ border-color 180ms ease;+}++.auth-expandable-trigger--active {+ border-color: #af3434 !important;+ box-shadow: 0 0 0 3px rgba(175, 52, 52, 0.12);+}++/* ── Animated expand/collapse via grid-template-rows ───────────────── */+.auth-expand-grid {+ display: grid;+ grid-template-rows: 0fr;+ transition:+ grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),+ opacity 220ms ease;+ opacity: 0;+}++.auth-expand-grid--open {+ grid-template-rows: 1fr;+ opacity: 1;+}++.auth-expand-inner {+ overflow: hidden;+ min-height: 0;+}++/* ── Icon+label group — keeps icons vertically aligned across buttons ── */+.oauth-btn-group {+ display: inline-flex;+ align-items: center;+ min-width: 12.5rem;+}++.oauth-btn-label {+ flex: 1;+ text-align: center;+}++/* ── Icon helpers inside oauth-button-fullwidth ─────────────────────── */+.auth-at-icon {+ font-size: 1.25rem;+ line-height: 1;+ margin-right: 0.5rem;+ display: inline-block;+ width: 1.75rem;+ text-align: center;+ flex-shrink: 0;+}diff --git a/frontend/editor/src/saas/routes/Login.tsx b/frontend/editor/src/saas/routes/Login.tsxindex 8487921478..4be5ed9b58 100644--- a/frontend/editor/src/saas/routes/Login.tsx+++ b/frontend/editor/src/saas/routes/Login.tsx@@ -7,17 +7,18 @@ import { useDocumentMeta } from "@app/hooks/useDocumentMeta";import AuthLayout from "@app/routes/authShared/AuthLayout";import "@app/routes/authShared/auth.css";import "@app/routes/authShared/saas-auth.css";-import GuestSignInButton from "@app/routes/authShared/GuestSignInButton";+import {+ absoluteWithBasePath,+ getBaseUrl,+ withBasePath,+} from "@app/constants/app";+import LinkRoundedIcon from "@mui/icons-material/LinkRounded";// Import login components-import LoginHeader from "@app/routes/login/LoginHeader";import ErrorMessage from "@app/routes/login/ErrorMessage";import EmailPasswordForm from "@app/routes/login/EmailPasswordForm";-import MagicLinkForm from "@app/routes/login/MagicLinkForm";import OAuthButtons from "@app/routes/login/OAuthButtons";-import DividerWithText from "@app/components/shared/DividerWithText";import LoggedInState from "@app/routes/login/LoggedInState";-import { absoluteWithBasePath, getBaseUrl } from "@app/constants/app";export default function Login() {const navigate = useNavigate();@@ -25,11 +26,13 @@ export default function Login() {const { t } = useTranslation();const [isSigningIn, setIsSigningIn] = useState(false);const [error, setError] = useState<string | null>(null);- const [showMagicLink, setShowMagicLink] = useState(false);+ const [showMagicLinkForm, setShowMagicLinkForm] = useState(false);const [showEmailForm, setShowEmailForm] = useState(false);const [email, setEmail] = useState("");const [password, setPassword] = useState("");const [magicLinkEmail, setMagicLinkEmail] = useState("");+ const [magicLinkSent, setMagicLinkSent] = useState(false);+// Prefill email from query param (e.g. after password reset)useEffect(() => {try {@@ -37,6 +40,7 @@ export default function Login() {const emailFromQuery = url.searchParams.get("email");if (emailFromQuery) {setEmail(emailFromQuery);+ setShowEmailForm(true);}} catch (_) {// ignore@@ -174,12 +178,9 @@ export default function Login() {setError(error.message);} else {setError(null);- alert(t("login.magicLinkSent", { email: magicLinkEmail }));- setMagicLinkEmail("");- setShowMagicLink(false);+ setMagicLinkSent(true);}} catch (err) {- console.error("[Login] Unexpected error:", err);setError(t("login.unexpectedError", {message: err instanceof Error ? err.message : "Unknown error",@@ -190,10 +191,6 @@ export default function Login() {}};- const handleForgotPassword = () => {- navigate("/auth/reset");- };-const handleAnonymousSignIn = async () => {try {setIsSigningIn(true);@@ -227,115 +224,210 @@ export default function Login() {}};- return (- <AuthLayout isEmailFormExpanded={showEmailForm}>- <LoginHeader- title={t("login.login")}- subtitle={t("login.subtitle", "Sign back in to Stirling PDF")}- />+ const toggleEmailForm = () => {+ setShowEmailForm((v) => !v);+ setShowMagicLinkForm(false);+ setMagicLinkSent(false);+ };- <ErrorMessage error={error} />+ const toggleMagicLink = () => {+ setShowMagicLinkForm((v) => !v);+ setShowEmailForm(false);+ setMagicLinkSent(false);+ };- {/* OAuth first */}- <OAuthButtons- onProviderClick={signInWithProvider}- isSubmitting={isSigningIn}- layout="fullwidth"- />-- {/* Divider between OAuth and Email */}- <DividerWithText- text={t("signup.or", "or")}- respondsToDarkMode={false}- opacity={0.4}- />-- {/* Sign in with email button (primary color to match signup CTA) */}- <div className="auth-section">- <button- type="button"- onClick={() => setShowEmailForm((v) => !v)}- disabled={isSigningIn}- className="w-full px-4 py-[0.75rem] rounded-[0.625rem] text-base font-semibold mb-2 cursor-pointer border-0 disabled:opacity-50 disabled:cursor-not-allowed auth-cta-button"- >- {t("login.useEmailInstead", "Sign in with email")}- </button>+ return (+ <AuthLayout isEmailFormExpanded={showEmailForm || showMagicLinkForm}>+ {/* Centered logo */}+ <div className="auth-logo-block">+ <img+ src={withBasePath("/modern-logo/LoginLightModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--light"+ />+ <img+ src={withBasePath("/modern-logo/LoginDarkModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--dark"+ /></div>- {showEmailForm && (- <EmailPasswordForm- email={email}- password={password}- setEmail={setEmail}- setPassword={setPassword}- onSubmit={signInWithEmail}+ <ErrorMessage error={error} />++ {/* OAuth + magic link group — single flex column so gap is uniform */}+ <div+ style={{+ display: "flex",+ flexDirection: "column",+ gap: "0.75rem",+ marginBottom: "2.5rem",+ }}+ >+ <OAuthButtons+ onProviderClick={signInWithProvider}isSubmitting={isSigningIn}- submitButtonText={- isSigningIn ? t("login.loggingIn") : t("login.login")- }+ layout="fullwidth"+ labelPrefix={`${t("login.signInWith", "Sign in with")} `}/>- )}- {showEmailForm && (- <div className="auth-section-sm">+ {/* Magic link button + its expandable form as one unit */}+ <div><buttontype="button"- onClick={handleForgotPassword}- className="auth-link-black"+ disabled={isSigningIn}+ onClick={toggleMagicLink}+ className={`oauth-button-fullwidth auth-expandable-trigger ${showMagicLinkForm ? "auth-expandable-trigger--active" : ""}`}>- {t("login.forgotPassword", "Forgot your password?")}+ <span className="oauth-btn-group">+ <LinkRoundedIcon+ style={{+ width: "1.75rem",+ height: "1.75rem",+ marginRight: "0.5rem",+ flexShrink: 0,+ }}+ />+ <span className="oauth-btn-label">+ {t("login.useMagicLink", "Use magic link")}+ </span>+ </span></button>- </div>- )}- {/* Divider then Guest */}- <DividerWithText- text={t("signup.or", "or")}- respondsToDarkMode={false}- opacity={0.4}- />+ <div+ className={`auth-expand-grid ${showMagicLinkForm ? "auth-expand-grid--open" : ""}`}+ >+ <div className="auth-expand-inner">+ <div style={{ paddingTop: "0.25rem" }}>+ {magicLinkSent ? (+ <p+ style={{+ fontSize: "0.875rem",+ color: "#059669",+ margin: 0,+ }}+ >+ {t("login.magicLinkSent", { email: magicLinkEmail })}+ </p>+ ) : (+ <div className="auth-magic-row">+ <input+ type="email"+ placeholder={t(+ "login.enterEmailForMagicLink",+ "Enter your email",+ )}+ value={magicLinkEmail}+ onChange={(e) => setMagicLinkEmail(e.target.value)}+ onKeyDown={(e) =>+ e.key === "Enter" &&+ !isSigningIn &&+ signInWithMagicLink()+ }+ className="auth-input"+ />+ <button+ onClick={signInWithMagicLink}+ disabled={isSigningIn || !magicLinkEmail}+ className="auth-magic-button"+ >+ {isSigningIn+ ? t("login.sending")+ : t("login.sendMagicLink")}+ </button>+ </div>+ )}+ </div>+ </div>+ </div>+ </div>+ </div>- <GuestSignInButton- onClick={handleAnonymousSignIn}+ {/* Email & Password button */}+ <button+ type="button"disabled={isSigningIn}- label={- isSigningIn- ? t("login.signingIn", "Signing in...")- : t("login.signInAnonymously", "Sign in as a Guest")- }- />+ onClick={toggleEmailForm}+ className={`oauth-button-fullwidth auth-expandable-trigger ${showEmailForm ? "auth-expandable-trigger--active" : ""}`}+ style={{ marginBottom: "0.75rem" }}+ >+ <span className="oauth-btn-group">+ <span className="auth-at-icon">@</span>+ <span className="oauth-btn-label">{`${t("login.signInWith", "Sign in with")} email`}</span>+ </span>+ </button>++ {/* Email form — animated expand */}+ <div+ className={`auth-expand-grid ${showEmailForm ? "auth-expand-grid--open" : ""}`}+ >+ <div className="auth-expand-inner">+ <div style={{ paddingBottom: "0.5rem" }}>+ <EmailPasswordForm+ email={email}+ password={password}+ setEmail={setEmail}+ setPassword={setPassword}+ onSubmit={signInWithEmail}+ isSubmitting={isSigningIn}+ submitButtonText={+ isSigningIn ? t("login.loggingIn") : t("login.login")+ }+ />+ <button+ type="button"+ onClick={() => navigate("/auth/reset")}+ className="auth-link-black"+ style={{ fontSize: "0.8125rem", marginTop: "0.25rem" }}+ >+ {t("login.forgotPassword", "Forgot your password?")}+ </button>+ </div>+ </div>+ </div>- <div className="auth-bottom-row">+ {/* Skip */}+ <div style={{ textAlign: "center", margin: "1rem 0" }}><buttontype="button"- onClick={() => setShowMagicLink(true)}- className="auth-link-black"+ onClick={handleAnonymousSignIn}+ disabled={isSigningIn}+ style={{+ background: "none",+ border: "none",+ cursor: "pointer",+ fontSize: "1rem",+ fontWeight: 700,+ color: "#000000",+ }}>- {t("login.useMagicLink", "Sign in with magic link")}+ {isSigningIn+ ? t("login.signingIn", "Signing in...")+ : `${t("signup.skip", "Skip")} →`}</button>+ </div>+ {/* Bottom */}+ <div+ style={{+ textAlign: "center",+ marginTop: "auto",+ paddingTop: "1rem",+ }}+ ><buttontype="button"onClick={() => navigate("/signup")}- className="auth-link-black"+ style={{+ background: "none",+ border: "none",+ cursor: "pointer",+ fontSize: "0.875rem",+ color: "#9ca3af",+ }}>- {t("signup.signUp", "Sign up")}+ {t("login.createAccount", "Create an account")}</button></div>-- {/* Magic link form renders on demand */}- {showMagicLink && (- <div style={{ marginTop: "0.5rem" }}>- <MagicLinkForm- showMagicLink={showMagicLink}- magicLinkEmail={magicLinkEmail}- setMagicLinkEmail={setMagicLinkEmail}- setShowMagicLink={setShowMagicLink}- onSubmit={signInWithMagicLink}- isSubmitting={isSigningIn}- />- </div>- )}</AuthLayout>);}diff --git a/frontend/editor/src/saas/routes/Signup.tsx b/frontend/editor/src/saas/routes/Signup.tsxindex d772cbe378..724bf455a5 100644--- a/frontend/editor/src/saas/routes/Signup.tsx+++ b/frontend/editor/src/saas/routes/Signup.tsx@@ -4,18 +4,15 @@ import { signInAnonymously } from "@app/auth/supabase";import { useAuth } from "@app/auth/UseSession";import { useTranslation } from "@app/hooks/useTranslation";import { useDocumentMeta } from "@app/hooks/useDocumentMeta";-import { getBaseUrl } from "@app/constants/app";+import { getBaseUrl, withBasePath } from "@app/constants/app";import AuthLayout from "@app/routes/authShared/AuthLayout";import "@app/routes/authShared/auth.css";import "@app/routes/authShared/saas-auth.css";-import GuestSignInButton from "@app/routes/authShared/GuestSignInButton";import { alert } from "@app/components/toast";// Import signup components-import LoginHeader from "@app/routes/login/LoginHeader";import ErrorMessage from "@app/routes/login/ErrorMessage";import OAuthButtons from "@app/routes/login/OAuthButtons";-import DividerWithText from "@app/components/shared/DividerWithText";import SignupForm from "@app/routes/signup/SignupForm";import {useSignupFormValidation,@@ -184,84 +181,112 @@ export default function Signup() {return (<AuthLayout isEmailFormExpanded={showEmailForm}>- <LoginHeader title={t("signup.title")} subtitle={t("signup.subtitle")} />+ {/* Centered logo */}+ <div className="auth-logo-block">+ <img+ src={withBasePath("/modern-logo/LoginLightModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--light"+ />+ <img+ src={withBasePath("/modern-logo/LoginDarkModeHeader.svg")}+ alt="Stirling PDF"+ className="auth-logo-header auth-logo-header--dark"+ />+ </div><ErrorMessage error={error} />- {/* OAuth first */}- <div style={{ marginBottom: "0.5rem" }}>+ {/* OAuth providers */}+ <div><OAuthButtonsonProviderClick={handleProviderSignIn}isSubmitting={isSigningUp}layout="fullwidth"+ labelPrefix={`${t("signup.signUpWith", "Sign up with")} `}/></div>- {/* Divider between OAuth and Email */}- <div style={{ margin: "0.5rem 0" }}>- <DividerWithText- text={t("signup.or", "or")}- respondsToDarkMode={false}- opacity={0.4}- />+ {/* Email & Password button */}+ <button+ type="button"+ disabled={isSigningUp}+ onClick={() => setShowEmailForm((v) => !v)}+ className={`oauth-button-fullwidth auth-expandable-trigger ${showEmailForm ? "auth-expandable-trigger--active" : ""}`}+ style={{ marginTop: "2.5rem", marginBottom: "0.75rem" }}+ >+ <span className="oauth-btn-group">+ <span className="auth-at-icon">@</span>+ <span className="oauth-btn-label">{`${t("signup.signUpWith", "Sign up with")} email`}</span>+ </span>+ </button>++ {/* Email form — animated expand */}+ <div+ className={`auth-expand-grid ${showEmailForm ? "auth-expand-grid--open" : ""}`}+ >+ <div className="auth-expand-inner">+ <div style={{ paddingBottom: "0.5rem" }}>+ <SignupForm+ name={name}+ email={email}+ password={password}+ confirmPassword={confirmPassword}+ agree={agree}+ setName={setName}+ setEmail={setEmail}+ setPassword={setPassword}+ setConfirmPassword={setConfirmPassword}+ setAgree={setAgree}+ onSubmit={handleSignUp}+ isSubmitting={isSigningUp}+ fieldErrors={fieldErrors}+ />+ </div>+ </div></div>- {/* Use Email Instead button (toggles email form) */}- <div className="auth-section">+ {/* Skip */}+ <div style={{ textAlign: "center", margin: "1rem 0" }}><buttontype="button"+ onClick={handleAnonymousSignIn}disabled={isSigningUp}- onClick={() => setShowEmailForm((v) => !v)}- className="w-full px-4 py-[0.75rem] rounded-[0.625rem] text-base font-semibold mb-2 cursor-pointer border-0 disabled:opacity-50 disabled:cursor-not-allowed auth-cta-button"+ style={{+ background: "none",+ border: "none",+ cursor: "pointer",+ fontSize: "1rem",+ fontWeight: 700,+ color: "#000000",+ }}>- {t("signup.useEmailInstead", "Use Email Instead")}+ {isSigningUp+ ? t("login.signingIn", "Signing in...")+ : `${t("signup.skip", "Skip")} →`}</button></div>- {showEmailForm && (- <SignupForm- name={name}- email={email}- password={password}- confirmPassword={confirmPassword}- agree={agree}- setName={setName}- setEmail={setEmail}- setPassword={setPassword}- setConfirmPassword={setConfirmPassword}- setAgree={setAgree}- onSubmit={handleSignUp}- isSubmitting={isSigningUp}- fieldErrors={fieldErrors}- />- )}-- <div className="auth-section-sm">- <DividerWithText- text={t("signup.or", "or")}- respondsToDarkMode={false}- opacity={0.4}- />- </div>-- <GuestSignInButton- onClick={handleAnonymousSignIn}- disabled={isSigningUp}- label={- isSigningUp- ? t("login.signingIn", "Signing in...")- : t("login.signInAnonymously", "Sign in as a Guest")- }- />-- {/* Bottom row */}- <div className="auth-bottom-right">+ {/* Bottom */}+ <div+ style={{+ textAlign: "center",+ marginTop: "auto",+ paddingTop: "1rem",+ }}+ ><buttontype="button"onClick={() => navigate("/login")}- className="auth-link-black"+ style={{+ background: "none",+ border: "none",+ cursor: "pointer",+ fontSize: "0.875rem",+ color: "#9ca3af",+ }}>- {t("login.logIn", "Log In")}+ {t("signup.alreadyHaveAccount", "I already have an account")}</button></div></AuthLayout>diff --git a/frontend/editor/src/saas/routes/authShared/saas-auth.css b/frontend/editor/src/saas/routes/authShared/saas-auth.cssindex 5073a24c91..9a8943fc2c 100644--- a/frontend/editor/src/saas/routes/authShared/saas-auth.css+++ b/frontend/editor/src/saas/routes/authShared/saas-auth.css@@ -14,7 +14,7 @@justify-content: center;padding: 0.75rem 1rem;border: 1px solid #d1d5db;- border-radius: 0.625rem;+ border-radius: 100px;background-color: #ffffff;font-size: 1rem;font-weight: 600;@@ -22,6 +22,10 @@cursor: pointer;gap: 0.5rem;box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.04);+ transition:+ background-color 150ms ease,+ box-shadow 150ms ease,+ border-color 150ms ease;}.oauth-button-fullwidth:disabled {@@ -29,6 +33,11 @@opacity: 0.6;}+.oauth-button-fullwidth:hover:not(:disabled) {+ background-color: #fafafa;+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);+}+.auth-dropdown-wrapper {position: relative;}@@ -72,3 +81,90 @@color: #9c2f30;border: 2px solid currentColor;}++/* ── Logo block ─────────────────────────────────────────────────────── */+.auth-logo-block {+ display: flex;+ flex-direction: column;+ align-items: center;+ margin-bottom: 2rem;+ margin-top: 0.5rem;+ animation: authFadeUp 0.4s ease both;+}++.auth-logo-header {+ height: 8rem;+ width: auto;+}++.auth-logo-header--dark {+ display: none;+}++/* ── Page entrance animation ────────────────────────────────────────── */+@keyframes authFadeUp {+ from {+ opacity: 0;+ transform: translateY(12px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+}++/* ── Expandable trigger button state ────────────────────────────────── */+.auth-expandable-trigger {+ transition:+ background-color 180ms ease,+ box-shadow 180ms ease,+ border-color 180ms ease;+}++.auth-expandable-trigger--active {+ border-color: #af3434 !important;+ box-shadow: 0 0 0 3px rgba(175, 52, 52, 0.12);+}++/* ── Animated expand/collapse via grid-template-rows ───────────────── */+.auth-expand-grid {+ display: grid;+ grid-template-rows: 0fr;+ transition:+ grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1),+ opacity 220ms ease;+ opacity: 0;+}++.auth-expand-grid--open {+ grid-template-rows: 1fr;+ opacity: 1;+}++.auth-expand-inner {+ overflow: hidden;+ min-height: 0;+}++/* ── Icon+label group — keeps icons vertically aligned across buttons ── */+.oauth-btn-group {+ display: inline-flex;+ align-items: center;+ min-width: 12.5rem;+}++.oauth-btn-label {+ flex: 1;+ text-align: center;+}++/* ── Icon helpers inside oauth-button-fullwidth ─────────────────────── */+.auth-at-icon {+ font-size: 1.25rem;+ line-height: 1;+ margin-right: 0.5rem;+ display: inline-block;+ width: 1.75rem;+ text-align: center;+ flex-shrink: 0;+}diff --git a/frontend/editor/src/saas/routes/login/OAuthButtons.tsx b/frontend/editor/src/saas/routes/login/OAuthButtons.tsxindex e016c125ec..717f96b9a5 100644--- a/frontend/editor/src/saas/routes/login/OAuthButtons.tsx+++ b/frontend/editor/src/saas/routes/login/OAuthButtons.tsx@@ -17,6 +17,7 @@ interface OAuthButtonsProps {isSubmitting: boolean;layout?: "vertical" | "grid" | "icons" | "fullwidth";enabledProviders?: string[]; // List of enabled provider IDs from backend+ labelPrefix?: string;}export default function OAuthButtons({@@ -24,6 +25,7 @@ export default function OAuthButtons({isSubmitting,layout = "vertical",enabledProviders: _enabledProviders = [],+ labelPrefix = "",}: OAuthButtonsProps) {const { t } = useTranslation();@@ -92,12 +94,18 @@ export default function OAuthButtons({className="oauth-button-fullwidth"title={p.label}>- <img- src={withBasePath(`/Login/${p.file}`)}- alt={p.label}- className={`oauth-icon-medium ${p.isDisabled ? "opacity-20" : ""}`}- />- {p.label}+ <span className="oauth-btn-group">+ <img+ src={withBasePath(`/Login/${p.file}`)}+ alt={p.label}+ className={`oauth-icon-medium ${p.isDisabled ? "opacity-20" : ""}`}+ style={{ marginRight: "0.5rem", flexShrink: 0 }}+ />+ <span className="oauth-btn-label">+ {labelPrefix}+ {p.label}+ </span>+ </span></button>))}</div>diff --git a/frontend/editor/src/saas/styles/saas-theme.css b/frontend/editor/src/saas/styles/saas-theme.cssindex 9d670c98d9..2aad69c541 100644--- a/frontend/editor/src/saas/styles/saas-theme.css+++ b/frontend/editor/src/saas/styles/saas-theme.css@@ -35,7 +35,7 @@--auth-label-text: #2b3230;--auth-button-bg: #af3434;--auth-button-text: #ffffff;- --auth-magic-button-bg: #8b5cf6;+ --auth-magic-button-bg: #af3434;--auth-magic-button-text: #ffffff;/* Light-only auth colors (no dark mode equivalents) used for login/signup */@@ -45,7 +45,7 @@--auth-label-text-light-only: #2b3230;--auth-button-bg-light-only: #af3434;--auth-button-text-light-only: #ffffff;- --auth-magic-button-bg-light-only: #8b5cf6;+ --auth-magic-button-bg-light-only: #af3434;--auth-magic-button-text-light-only: #ffffff;--auth-bg-color-light-only: #ffffff;--auth-card-bg-light-only: #ffffff;