Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

improve(locker):implement-newer-layout

Aswin Asok647fd8775558
diff --git a/web/apps/locker/package.json b/web/apps/locker/package.json
index 666186aac1..45202c24d1 100644
--- a/web/apps/locker/package.json
+++ b/web/apps/locker/package.json
@@ -3,6 +3,7 @@
"version": "0.0.0",
"private": true,
"dependencies": {
+ "@fontsource-variable/outfit": "5.2.8",
"@hugeicons/core-free-icons": "1.2.1",
"@hugeicons/react": "1.1.6",
"ente-accounts": "*",
diff --git a/web/apps/locker/public/images/auth-ducky.svg b/web/apps/locker/public/images/auth-ducky.svg
new file mode 100644
index 0000000000..f8140a1778
--- /dev/null
+++ b/web/apps/locker/public/images/auth-ducky.svg
@@ -0,0 +1,76 @@
+<svg width="4291" height="2800" viewBox="0 0 4291 2800" fill="none" xmlns="http://www.w3.org/2000/svg">
+<ellipse cx="2145.15" cy="2702.65" rx="2145.15" ry="97.139" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1318.26 2453.11C1481.88 2600.95 1472.86 2714.53 1268.23 2732.56C1063.61 2750.59 916.671 2708.67 963.997 2580.66C1011.32 2452.66 1318.26 2453.11 1318.26 2453.11Z" fill="#FF814A" style="fill:#FF814A;fill:color(display-p3 1.0000 0.5059 0.2902);fill-opacity:1;"/>
+<path d="M1183.02 2751.52C1071.24 2751.52 993.719 2728.53 959.915 2684.36C937.83 2655.06 934.224 2618.55 950.45 2575.74C1000.48 2440.07 1303.82 2438.27 1318.69 2438.27C1322.3 2438.27 1325.9 2439.62 1328.61 2441.87C1422.36 2526.61 1462.02 2601.43 1443.09 2658.22C1426.41 2708.25 1368.27 2738.45 1270.01 2747.01C1238.91 2750.16 1210.07 2751.52 1183.02 2751.52ZM1312.83 2468.01C1271.81 2468.91 1017.61 2478.38 977.944 2586.1C965.774 2619.46 967.577 2645.6 983.352 2666.33C1018.51 2711.85 1121.72 2730.78 1267.31 2717.71C1351.14 2710.05 1402.52 2686.61 1414.69 2649.2C1429.12 2605.48 1393.06 2541.48 1312.83 2468.01Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M294.691 2063.2C35.9772 2063.65 -157.382 2204.73 352.384 2489.13C794.091 2735.68 294.691 2063.2 294.691 2063.2Z" fill="#EFA33F" style="fill:#EFA33F;fill:color(display-p3 0.9373 0.6392 0.2471);fill-opacity:1;"/>
+<path d="M495.703 2558.54C461.899 2558.54 412.319 2540.06 345.162 2502.2C223.016 2434.14 133.774 2370.14 80.1377 2311.55C30.1076 2257.01 10.2759 2207.43 21.5439 2164.16C43.6293 2078.52 177.494 2047.88 295.132 2047.88C300.09 2047.88 304.597 2050.13 307.301 2054.19C308.203 2055.09 382.121 2155.15 447.476 2262.87C570.523 2465.24 557.902 2519.33 537.62 2542.32C527.704 2553.13 513.732 2558.54 495.703 2558.54ZM287.019 2078.52C157.211 2080.33 64.8131 2116.38 50.3901 2172.27C39.122 2215.09 64.8132 2311.55 359.585 2476.06C481.28 2543.67 508.774 2528.79 514.182 2522.48C521.845 2513.92 537.62 2470.65 420.883 2279.1C365.895 2187.6 304.146 2101.96 287.019 2078.52Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1301.18 1627.84C1588.29 1529.59 1725.76 1323.61 1842.5 1384C1959.23 1444.4 1829.43 1901.88 1590.99 1972.19C1352.56 2042.06 1301.18 1627.84 1301.18 1627.84Z" fill="#EFA33F" style="fill:#EFA33F;fill:color(display-p3 0.9373 0.6392 0.2471);fill-opacity:1;"/>
+<path d="M1578.78 1524.63L1735.18 1419.16L1732.03 1389.41L1578.78 1484.52V1524.63Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M1538.25 1994.7C1505.34 1994.7 1474.7 1985.23 1446.3 1966.75C1318.75 1883.37 1287.2 1639.53 1285.84 1629.16C1284.94 1622.4 1289 1615.64 1295.76 1613.39C1423.76 1569.67 1522.47 1503.41 1601.8 1450.68C1703.66 1382.62 1777.13 1333.49 1848.79 1370.45C1888.91 1391.18 1906.49 1448.42 1898.37 1531.35C1890.26 1616.99 1855.56 1717.5 1805.98 1799.98C1764.96 1868.49 1694.65 1956.38 1595.04 1985.68C1575.66 1991.99 1556.73 1994.7 1538.25 1994.7ZM1317.39 1637.72C1325.51 1686.85 1362.02 1876.16 1462.98 1942.41C1499.94 1966.75 1540.5 1971.71 1586.93 1957.74C1748.73 1909.96 1855.1 1678.29 1869.53 1529.1C1876.29 1461.04 1863.67 1411.46 1835.72 1397.04C1779.38 1367.74 1712.23 1412.81 1618.48 1475.47C1540.05 1528.2 1443.15 1593.1 1317.39 1637.72Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M548.925 2453.11C385.313 2600.95 394.327 2714.53 598.955 2732.56C803.582 2750.59 950.518 2708.67 903.192 2580.66C855.866 2452.66 548.925 2453.11 548.925 2453.11Z" fill="#FF814A" style="fill:#FF814A;fill:color(display-p3 1.0000 0.5059 0.2902);fill-opacity:1;"/>
+<path d="M684.624 2751.49C657.581 2751.49 628.735 2750.14 597.635 2747.43C499.829 2738.87 441.235 2708.67 424.558 2658.64C405.628 2601.4 444.841 2526.58 539.041 2442.29C541.746 2440.04 545.351 2438.69 548.957 2438.69C563.831 2438.69 867.167 2440.49 917.197 2576.16C932.972 2618.98 929.817 2655.48 907.732 2684.78C873.927 2728.5 795.953 2751.49 684.624 2751.49ZM554.366 2467.98C474.138 2541.45 438.08 2605.91 452.503 2649.17C465.123 2686.58 516.055 2710.47 599.889 2717.68C745.472 2730.76 848.687 2711.82 883.843 2666.3C899.619 2645.57 901.421 2618.98 889.252 2586.07C849.589 2477.9 595.832 2468.44 554.366 2467.98Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1626.94 2274.61C1626.04 2277.77 1625.59 2280.92 1624.69 2284.08C1530.04 2621.67 1118.53 2627.07 826.008 2623.02H825.106C764.259 2622.12 704.313 2617.61 647.071 2608.59H646.621C396.02 2569.83 197.251 2447.69 215.731 2157.87C219.788 2059.17 236.013 1960.46 257.648 1866.71C272.973 1800.9 299.115 1745.46 313.087 1681.91C321.2 1645.85 323.003 1605.29 323.453 1566.08C318.496 1412.38 353.201 1275.36 417.203 1164.03C553.321 926.502 821.501 804.357 1125.29 886.388C1434.03 972.476 1535.44 1245.61 1521.92 1543.99V1544.89C1518.32 1662.98 1549.87 1731.94 1592.23 1839.21C1645.42 1976.68 1662.1 2131.28 1626.94 2274.61Z" fill="#F4D93B" style="fill:#F4D93B;fill:color(display-p3 0.9569 0.8510 0.2314);fill-opacity:1;"/>
+<path d="M1362.41 1100.91C1479.6 1267.67 1498.98 1376.75 1514.31 1507.01C1529.18 1637.26 1521.52 1435.79 1521.52 1435.79L1508 1319.96L1466.53 1168.51L1430.47 1110.82L1362.41 1100.91Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M646.621 2609.01C396.02 2570.25 197.251 2448.1 215.731 2158.29C219.788 2059.58 236.013 1960.87 257.648 1867.12C272.973 1801.31 299.115 1745.88 313.087 1682.32C321.2 1646.27 323.003 1605.7 323.453 1566.49C318.496 1412.79 353.201 1275.77 417.203 1164.45L519.968 1186.53C447.853 1366.82 457.768 1662.94 457.768 1662.94C457.768 1662.94 136.404 2190.74 391.062 2202.46C391.062 2202.46 386.104 2552.67 646.621 2609.01Z" fill="#EFA33F" style="fill:#EFA33F;fill:color(display-p3 0.9373 0.6392 0.2471);fill-opacity:1;"/>
+<path opacity="0.32" d="M1627.05 2274.58C1626.15 2277.73 1625.7 2280.89 1624.79 2284.04C1530.14 2621.63 1118.63 2627.04 826.115 2622.98H825.214L776.536 2614.87C675.124 2468.39 694.054 1937.44 1046.97 1835.12C1357.97 1744.98 1598.65 1855.41 1623.89 1988.37C1634.26 2044.26 1632.46 2159.19 1627.05 2274.58Z" fill="#FFF4C5" style="fill:#FFF4C5;fill:color(display-p3 1.0000 0.9569 0.7725);fill-opacity:1;"/>
+<path d="M900.9 2638.77C875.659 2638.77 850.419 2638.32 825.629 2638.32C576.38 2634.26 398.796 2576.12 296.933 2465.69C225.268 2387.72 192.816 2284.05 200.929 2157.4C204.535 2067.25 218.958 1968.54 243.297 1863.98C250.959 1830.62 261.326 1799.97 271.693 1770.23C282.059 1739.58 291.975 1710.73 298.736 1679.63C307.3 1642.22 308.652 1599.85 308.652 1567.4C300.99 1323.56 392.035 1108.57 558.802 976.506C715.203 852.558 917.577 815.599 1128.96 872.84C1407.51 950.815 1552.19 1189.25 1536.42 1544.87V1545.32V1545.77C1533.26 1651.69 1559.4 1717.94 1595.91 1809.44C1599.07 1817.55 1602.22 1825.67 1605.83 1834.23C1664.42 1984.32 1676.14 2145.68 1639.18 2288.11C1595.46 2443.6 1485.94 2544.12 1303.84 2595.95C1177.19 2632.01 1037.47 2638.77 900.9 2638.77ZM938.31 875.995C804.445 875.995 680.046 917.912 577.282 999.493C418.177 1125.24 331.188 1332.13 338.399 1566.5V1566.95C338.399 1601.21 337.047 1645.38 327.582 1685.94C320.37 1718.84 309.553 1749.49 299.637 1779.69C289.721 1808.99 279.355 1838.74 272.143 1870.74C248.255 1973.5 234.283 2070.41 230.226 2159.2C222.564 2277.74 252.312 2374.19 318.568 2445.86C414.571 2549.97 584.944 2604.51 826.08 2609.02C1159.61 2613.08 1523.35 2591.89 1610.34 2280.44C1645.94 2144.33 1634.67 1989.73 1578.33 1845.5C1575.18 1836.93 1571.57 1828.82 1568.42 1820.71C1530.56 1725.61 1503.51 1657.1 1507.12 1545.32V1544.87V1544.42C1515.68 1347 1477.37 1001.3 1121.3 901.686C1059.1 884.108 997.805 875.995 938.31 875.995Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M855.363 669.103C828.77 698.4 790.459 724.091 739.978 738.965L612.424 776.375C575.465 589.326 661.102 512.252 718.343 614.115C718.343 614.115 723.752 523.52 820.657 502.336C825.615 501.435 830.122 500.534 835.531 499.632C915.759 488.815 925.675 591.579 855.363 669.103Z" fill="#F4D93B" style="fill:#F4D93B;fill:color(display-p3 0.9569 0.8510 0.2314);fill-opacity:1;"/>
+<path d="M855.286 669.103C845.821 667.751 841.314 661.892 846.722 647.919C867.005 591.579 893.597 505.942 803.453 519.464L820.58 502.336C825.538 501.435 830.046 500.534 835.454 499.632C915.683 488.815 925.599 591.579 855.286 669.103Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M612.402 791.292C605.641 791.292 599.331 786.334 597.978 779.574C572.287 648.414 604.739 572.692 645.755 557.368C667.84 549.255 691.278 557.368 711.56 579.453C724.18 545.198 755.28 495.619 833.255 485.252C875.172 479.393 906.723 500.577 914.836 540.24C928.357 604.694 876.524 714.67 744.012 752.981C736.35 755.235 727.786 750.727 725.533 743.065C723.279 735.403 727.786 726.839 735.448 724.586C849.481 691.683 896.807 597.933 885.539 546.1C881.933 528.972 870.665 509.591 836.861 514.099C739.956 527.17 732.744 611.454 732.744 615.06C732.293 621.37 727.786 627.23 721.025 628.582C714.715 629.934 707.955 627.23 704.799 621.37C689.024 592.975 670.545 579.453 655.22 584.862C629.529 594.327 603.838 659.231 626.374 773.263C628.177 781.376 622.768 789.039 614.655 790.842C614.655 791.292 613.303 791.292 612.402 791.292Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M795.149 1308.99C803.108 1298.43 813.057 1289.7 824.598 1282.81C827.384 1280.98 830.568 1279.6 833.353 1278.22C834.945 1277.3 836.537 1276.84 838.129 1276.38C839.721 1275.47 841.312 1275.01 842.904 1274.55C849.272 1272.25 855.639 1271.33 862.404 1271.33C875.537 1270.87 889.068 1274.09 901.007 1280.52C906.976 1283.73 912.548 1287.87 917.323 1292C920.109 1294.3 922.497 1296.59 924.486 1299.35C925.68 1300.73 926.874 1302.1 928.068 1303.48C928.864 1304.4 929.262 1304.86 929.66 1305.78C930.456 1306.7 930.854 1307.16 931.65 1308.53C934.833 1313.13 934.037 1320.02 930.058 1323.69C927.67 1325.99 924.486 1326.45 921.701 1325.53L917.323 1324.15C916.925 1324.15 916.527 1323.69 915.731 1323.23L914.139 1321.85C912.946 1320.94 911.752 1320.48 910.956 1319.56C908.568 1318.18 906.578 1316.8 904.19 1315.42C899.813 1312.67 895.037 1310.37 890.66 1308.53C881.507 1304.86 872.353 1302.56 862.802 1302.56C858.027 1302.56 853.251 1303.02 848.476 1303.94C847.282 1304.4 846.088 1304.4 844.894 1304.86C843.7 1305.32 842.506 1305.32 841.313 1305.78C838.925 1306.7 836.537 1307.16 834.149 1308.08C824.598 1311.75 815.047 1316.8 805.496 1322.77H805.098C801.118 1325.53 795.945 1323.69 793.955 1318.64C792.363 1315.88 792.761 1311.75 795.149 1308.99Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1231.15 1282.42C1238.77 1271.47 1248.3 1262.42 1259.35 1255.28C1264.69 1251.94 1270.79 1249.09 1276.89 1247.18C1282.99 1245.28 1289.47 1244.33 1295.56 1244.33C1308.14 1243.85 1321.1 1248.13 1332.16 1254.8C1337.87 1258.13 1342.83 1262.42 1347.4 1267.18C1349.69 1269.56 1351.98 1272.42 1354.26 1274.8C1355.41 1276.23 1356.55 1277.66 1357.31 1279.09L1358.84 1281.47C1359.6 1282.42 1359.98 1282.9 1360.36 1284.33C1362.65 1288.61 1362.27 1293.85 1358.84 1296.71C1356.55 1298.61 1354.26 1299.09 1351.98 1298.14L1349.69 1296.71C1349.31 1296.23 1348.54 1295.75 1348.16 1295.75L1346.64 1294.33C1345.5 1293.37 1344.35 1292.9 1343.21 1291.95C1340.92 1290.52 1338.63 1289.09 1336.73 1287.66C1332.16 1284.8 1327.58 1282.9 1323.39 1280.99C1314.24 1277.18 1305.09 1275.75 1295.95 1275.75C1291.37 1276.23 1286.8 1276.71 1282.22 1277.66C1281.08 1278.14 1279.94 1278.14 1278.79 1278.61C1277.65 1279.09 1276.51 1279.56 1275.36 1279.56C1273.08 1280.52 1270.79 1281.47 1268.5 1282.42C1259.35 1286.23 1250.59 1291.95 1241.06 1297.66H1240.68C1236.49 1300.52 1231.53 1298.61 1229.62 1292.9C1228.48 1290.04 1228.86 1285.75 1231.15 1282.42Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M606.962 2047.92C522.677 2125.9 451.012 2178.63 391.066 2211.08C22.3758 2409.4 90.8855 1836.08 372.586 1620.19L426.222 1717.99L606.962 2047.92Z" fill="#F4D93B" style="fill:#F4D93B;fill:color(display-p3 0.9569 0.8510 0.2314);fill-opacity:1;"/>
+<path d="M391.136 2211.08C22.4461 2409.4 90.9558 1836.08 372.657 1620.19L426.293 1717.99C352.374 1853.21 187.41 2193.51 391.136 2202.97C391.136 2202.52 391.136 2205.67 391.136 2211.08Z" fill="#EFA33F" style="fill:#EFA33F;fill:color(display-p3 0.9373 0.6392 0.2471);fill-opacity:1;"/>
+<path d="M381.622 1631.92C344.663 1661.67 311.76 1696.82 282.914 1735.59C268.942 1754.97 255.42 1774.8 243.701 1795.98C231.532 1816.72 220.714 1837.9 210.799 1859.99C190.967 1903.71 175.642 1949.23 165.726 1996.1C160.769 2019.54 157.163 2042.98 155.811 2066.42C154.458 2089.85 154.909 2113.74 158.966 2135.83C163.022 2158.36 169.783 2180 181.952 2197.58C194.122 2214.7 211.249 2227.32 231.532 2232.73C241.898 2235.44 252.265 2236.34 263.533 2236.34C274.801 2235.89 285.618 2234.54 297.337 2231.83C319.873 2226.87 341.959 2218.76 363.593 2208.84C406.862 2189.01 447.878 2162.42 487.542 2134.02C527.205 2105.63 565.066 2074.53 602.476 2042.98C605.631 2040.27 609.687 2040.73 611.941 2043.88C614.194 2046.58 614.194 2050.64 611.49 2052.9C576.784 2088.05 539.825 2121.4 501.514 2152.5C482.133 2167.83 462.301 2183.15 441.117 2196.68C419.933 2210.2 398.75 2223.72 376.213 2234.99C353.677 2246.25 329.789 2255.72 304.098 2262.48C291.478 2265.64 277.956 2267.44 264.885 2268.34C251.364 2268.79 237.391 2267.89 223.869 2264.73C217.109 2262.93 210.348 2260.68 203.587 2257.97C196.826 2255.27 190.516 2251.66 184.657 2247.61C172.487 2239.49 162.571 2229.13 154.458 2217.41C150.402 2211.55 146.796 2205.69 143.641 2199.83C140.486 2193.52 137.782 2187.21 135.528 2181.35C133.274 2175.04 131.021 2168.73 129.218 2162.42C127.415 2156.11 126.063 2149.35 124.711 2143.04C120.204 2116.9 119.302 2091.21 120.654 2065.52C122.006 2039.82 125.612 2014.58 131.021 1989.79C141.387 1940.21 158.064 1891.99 179.248 1846.01C189.615 1823.03 201.333 1800.94 214.404 1779.31C227.475 1757.67 241.448 1736.94 256.772 1716.66C287.421 1676.54 323.028 1639.58 364.044 1609.38C370.805 1604.43 379.819 1605.78 384.777 1612.54C389.284 1617.95 387.932 1626.96 381.622 1631.92Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1334.49 919.341C1332.24 1018.5 1270.49 1053.21 1270.49 1053.21L451.527 1189.77L387.525 1200.59C256.365 1027.97 292.422 851.282 555.193 733.644C592.603 716.967 634.971 701.192 681.846 687.22C777.85 658.374 863.487 641.697 938.306 636.288C1156.46 620.513 1284.91 697.136 1320.97 825.591C1331.34 861.649 1334.94 892.749 1334.49 919.341Z" fill="#1071FF" style="fill:#1071FF;fill:color(display-p3 0.0627 0.4431 1.0000);fill-opacity:1;"/>
+<path d="M589.01 1105L451.991 1189.74L434.863 1200.56H388.439C257.279 1027.93 293.337 851.248 556.107 733.609H558.812C357.339 857.558 589.01 1105 589.01 1105Z" fill="#0766D8" style="fill:#0766D8;fill:color(display-p3 0.0275 0.4000 0.8471);fill-opacity:1;"/>
+<path d="M1334.54 919.341L1307.94 922.947C1296.23 791.787 1229.52 652.965 925.281 652.063L938.803 636.288C1156.95 620.513 1285.41 697.136 1321.47 825.591C1331.38 861.649 1334.99 892.749 1334.54 919.341Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M387.983 1214.98C383.476 1214.98 378.969 1212.73 376.265 1209.12C305.952 1116.72 283.416 1023.88 310.459 940.042C347.419 826.46 474.522 734.062 677.797 672.314C907.215 602.902 1091.56 600.649 1210.55 666.003C1273.2 700.258 1316.47 753.894 1335.4 821.052C1386.33 1002.69 1282.21 1063.09 1277.71 1065.79C1276.36 1066.69 1274.55 1067.15 1272.75 1067.6L390.237 1214.98C389.786 1214.98 388.885 1214.98 387.983 1214.98ZM994.204 648.425C905.862 648.425 802.197 666.003 686.361 701.16C492.551 759.754 372.208 845.391 338.404 949.507C314.967 1021.62 334.348 1102.75 394.294 1184.33L1265.54 1038.75C1278.61 1030.19 1348.47 976.1 1307 829.165C1290.33 769.219 1252.92 723.245 1196.58 692.145C1142.94 662.848 1074.88 648.425 994.204 648.425Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1646.88 1011.68C1594.15 1048.19 1423.77 1082.9 1233.12 1114.9C932.035 1165.38 885.16 1164.03 449.312 1179.35C449.312 1179.35 504.3 1146.9 622.39 1088.31C639.066 1080.19 659.349 1071.18 681.434 1061.71C868.934 983.289 1068.15 938.217 1270.98 926.498C1278.19 926.047 1285.4 925.596 1292.16 925.596C1406.19 920.188 1523.83 922.441 1599.1 946.78C1668.06 968.415 1677.08 990.5 1646.88 1011.68Z" fill="#1071FF" style="fill:#1071FF;fill:color(display-p3 0.0627 0.4431 1.0000);fill-opacity:1;"/>
+<path d="M1646.82 1011.68C1636.9 995.458 1577.41 942.724 1231.7 940.019L1270.92 926.498C1278.13 926.047 1285.34 925.596 1292.1 925.596C1406.13 920.188 1523.77 922.441 1599.04 946.78C1668 968.415 1677.02 990.5 1646.82 1011.68Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M463.733 1175.29C470.043 1173.94 475.903 1172.13 481.762 1170.33C487.621 1168.53 492.579 1166.73 497.537 1165.37C502.495 1164.02 507.453 1162.67 511.96 1162.22C514.665 1161.77 516.918 1161.77 519.623 1161.32L523.679 1160.87L528.186 1160.42L607.062 1157.26C659.797 1155.01 712.081 1153.2 764.364 1150.95C816.648 1148.25 868.932 1145.54 921.215 1141.03C973.499 1136.53 1025.33 1130.22 1076.71 1123.01C1128.55 1115.34 1180.38 1107.23 1232.21 1098.22C1284.05 1089.65 1335.88 1080.64 1387.26 1070.72C1438.64 1060.81 1490.03 1049.99 1540.06 1036.47C1552.68 1032.86 1565.3 1029.26 1577.02 1025.65C1589.18 1021.59 1601.35 1017.54 1612.62 1012.58C1618.48 1009.87 1623.89 1007.62 1629.3 1004.47C1634.71 1001.76 1639.67 998.607 1643.27 995.452C1645.07 993.649 1646.88 992.297 1647.78 990.945C1648.68 989.593 1649.13 988.691 1649.13 988.24C1649.13 987.79 1649.13 988.24 1648.68 987.339C1648.23 986.437 1647.33 985.085 1645.52 983.733C1642.37 980.578 1637.41 977.423 1632.45 974.719C1627.5 972.014 1621.64 969.31 1616.23 967.056C1610.37 964.803 1604.51 962.549 1598.65 960.296C1595.49 958.943 1592.79 958.042 1589.64 957.591L1580.62 954.887C1556.28 948.577 1530.59 944.52 1505.35 941.365C1479.66 938.21 1453.52 936.858 1427.83 935.506C1401.68 934.154 1375.54 934.154 1349.4 934.154C1323.26 934.604 1297.12 935.055 1270.98 936.407C1264.21 936.858 1257.9 936.858 1251.59 937.309L1232.21 938.661C1225.45 939.112 1219.14 939.562 1212.83 940.013L1193.45 941.816C1141.17 946.323 1089.33 953.084 1037.95 962.549C1031.64 963.901 1024.88 964.803 1018.57 966.155L999.641 970.211C993.331 971.564 987.021 972.916 980.711 974.268L961.78 978.775C955.47 980.578 949.16 981.93 942.85 983.282L923.92 988.24C917.61 990.043 911.299 991.395 904.989 993.198L886.059 998.607C879.749 1000.41 873.439 1002.21 867.129 1004.02L848.649 1009.87C842.339 1012.13 836.029 1013.93 830.17 1015.73L811.69 1022.04C805.38 1024.3 799.07 1026.1 793.211 1028.35L774.731 1035.12C768.421 1037.37 762.561 1039.62 756.251 1041.88L738.222 1049.09C731.912 1051.79 726.053 1053.59 720.194 1056.3L702.165 1063.96C689.995 1068.92 677.826 1074.33 666.107 1079.29C654.388 1084.69 642.219 1090.1 630.951 1095.96L596.245 1113.99C573.258 1126.16 550.272 1138.78 527.285 1151.4C516.017 1157.71 504.749 1164.47 493.03 1170.78C487.171 1173.94 481.762 1177.54 476.353 1180.7L467.79 1185.66L463.733 1188.36L461.48 1189.71L460.578 1190.61C461.479 1189.71 457.874 1192.42 462.381 1189.26C463.733 1187.01 465.536 1178.44 463.733 1175.29ZM435.338 1183.4C433.985 1179.8 435.788 1171.23 440.296 1168.08C445.253 1164.47 442.099 1166.73 443.451 1165.82L444.803 1164.92L447.056 1163.57L451.564 1161.32L460.578 1156.81L478.156 1147.8C489.875 1141.49 502.044 1136.08 513.312 1130.22C537.201 1118.5 560.638 1107.23 584.526 1095.51L620.133 1078.38C632.303 1072.53 644.472 1067.12 656.642 1062.16C668.811 1056.75 681.432 1052.24 693.601 1047.28C705.771 1042.33 718.391 1037.82 730.56 1033.31L749.04 1026.55C755.35 1024.3 761.66 1022.04 767.519 1019.79L785.999 1013.48C792.309 1011.23 798.619 1009.42 804.929 1007.17L823.86 1000.86C830.17 998.607 836.48 996.804 842.79 995.001L861.72 989.142C868.03 987.339 874.34 985.536 880.65 983.733L899.581 978.324C905.891 976.522 912.201 975.169 918.511 973.367L937.441 968.409C943.751 966.606 950.062 965.254 956.822 963.901L976.203 959.394C982.513 957.591 989.274 956.69 995.584 955.338L1014.97 951.281C1021.28 949.929 1028.04 948.577 1034.35 947.225C1086.18 936.858 1138.46 928.745 1190.75 922.435L1210.58 920.181C1217.34 919.28 1223.65 918.829 1230.41 917.928L1250.24 916.125C1257 915.223 1263.31 915.223 1270.07 914.322C1296.67 912.068 1322.81 910.716 1349.4 909.815C1402.14 908.012 1455.32 908.012 1508.51 913.871C1535.1 916.576 1561.69 920.632 1588.28 927.844L1598.2 930.999C1601.8 931.9 1604.96 932.802 1608.11 934.154C1614.43 936.407 1621.19 938.661 1627.5 941.365C1633.81 944.07 1640.57 946.774 1646.88 950.38C1653.19 953.986 1659.95 958.042 1666.26 963.901C1669.41 967.056 1672.57 970.662 1675.27 975.62C1675.72 976.522 1676.17 976.972 1676.17 977.423L1677.08 979.677C1677.53 981.029 1677.98 982.832 1678.43 984.184C1679.33 987.339 1678.88 990.494 1678.43 993.649C1677.53 999.959 1674.37 1004.92 1671.67 1008.97C1668.51 1013.03 1665.81 1015.73 1662.65 1018.44C1656.34 1023.85 1650.03 1027.45 1643.72 1031.06C1637.41 1034.66 1631.1 1037.37 1624.79 1040.07C1612.17 1045.48 1599.1 1049.99 1586.48 1054.5C1573.86 1058.55 1560.79 1062.61 1548.17 1066.22C1496.79 1080.19 1444.95 1091.46 1393.57 1101.82C1341.74 1112.19 1289.91 1121.2 1238.07 1130.22C1186.24 1138.78 1133.96 1147.35 1082.12 1155.01C1029.84 1162.67 977.105 1168.98 924.821 1173.49C872.087 1177.99 819.352 1181.15 766.618 1183.4C713.883 1185.66 661.6 1187.46 608.865 1189.26L529.989 1191.97L524.13 1192.42H518.27C514.214 1192.42 510.157 1192.42 506.101 1192.42C497.988 1191.97 489.424 1191.52 481.311 1190.61C473.198 1189.71 465.085 1188.36 457.423 1187.01C448.859 1185.66 442.098 1184.3 435.338 1183.4Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M4006.78 987.82V2609.07C4006.78 2621.23 4004.98 2633.4 4001.83 2644.22C3986.5 2697.41 3937.37 2736.62 3879.23 2736.62H1984.4C1914.09 2736.62 1856.84 2679.38 1856.84 2609.07V987.82C1856.84 917.507 1914.09 860.266 1984.4 860.266H3879.23C3949.54 860.266 4006.78 917.507 4006.78 987.82Z" fill="#08A7FF" style="fill:#08A7FF;fill:color(display-p3 0.0314 0.6549 1.0000);fill-opacity:1;"/>
+<path d="M4006.9 987.82V2609.06C4006.9 2621.23 4005.1 2633.4 4001.94 2644.22C3996.98 2649.63 3993.38 2644.67 3992.03 2625.74C3984.81 2505.4 3976.7 1817.6 3976.7 1578.72C3976.7 1339.83 3985.72 1006.3 3958.67 947.706C3931.63 889.112 3864.02 907.141 3719.79 907.141C3575.56 907.141 3421.86 907.141 3421.86 907.141C3421.86 907.141 3435.84 929.677 3435.84 997.285C3435.84 1132.5 3421.86 2491.88 3421.86 2491.88L3336.68 2191.7C3336.68 2191.7 3277.63 1123.49 3267.27 860.266H3879.35C3949.66 860.266 4006.9 917.507 4006.9 987.82Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3879.34 2751.53H1984.51C1906.08 2751.53 1842.08 2687.53 1842.08 2609.1V987.858C1842.08 909.432 1906.08 845.43 1984.51 845.43H3879.34C3957.76 845.43 4021.77 909.432 4021.77 987.858V2609.1C4021.32 2687.53 3957.76 2751.53 3879.34 2751.53ZM1984.51 875.177C1922.31 875.177 1871.83 925.658 1871.83 987.858V2609.1C1871.83 2671.3 1922.31 2721.78 1984.51 2721.78H3879.34C3941.54 2721.78 3992.02 2671.3 3992.02 2609.1V987.858C3992.02 925.658 3941.54 875.177 3879.34 875.177H1984.51Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3555.76 987.82V2609.07C3555.76 2679.38 3511.14 2736.62 3456.6 2736.62H1982.74C1927.76 2736.62 1883.59 2679.38 1883.59 2609.07V987.82C1883.59 917.507 1928.21 860.266 1982.74 860.266H3456.6C3487.7 860.266 3515.2 878.745 3533.68 907.141C3547.2 929.226 3555.76 957.171 3555.76 987.82Z" fill="#08A7FF" style="fill:#08A7FF;fill:color(display-p3 0.0314 0.6549 1.0000);fill-opacity:1;"/>
+<path d="M3421.8 907.141C3421.8 907.141 3435.77 929.677 3435.77 997.285C3435.77 1132.5 3421.8 2491.88 3421.8 2491.88L3336.61 2191.7C3336.61 2191.7 3277.57 1123.49 3267.2 860.266H3456.51C3487.61 860.266 3515.1 878.745 3533.58 907.141C3468.23 907.141 3421.8 907.141 3421.8 907.141Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3456.58 2743.35H1982.72C1924.12 2743.35 1876.8 2682.95 1876.8 2609.04V987.792C1876.8 913.873 1924.57 853.477 1982.72 853.477H3456.58C3515.17 853.477 3562.5 913.873 3562.5 987.792V2609.04C3562.5 2682.95 3514.72 2743.35 3456.58 2743.35ZM1982.72 866.998C1931.78 866.998 1890.32 921.085 1890.32 987.792V2609.04C1890.32 2675.74 1931.78 2729.83 1982.72 2729.83H3456.58C3507.51 2729.83 3548.97 2675.74 3548.97 2609.04V987.792C3548.97 921.085 3507.51 866.998 3456.58 866.998H1982.72Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3407.34 987.82V2609.07C3407.34 2679.38 3362.72 2736.62 3308.18 2736.62H1834.32C1779.33 2736.62 1735.16 2679.38 1735.16 2609.07V987.82C1735.16 941.846 1754.09 902.183 1782.04 879.647C1797.36 867.477 1814.94 860.266 1834.32 860.266H3308.18C3362.72 860.266 3407.34 917.507 3407.34 987.82Z" fill="#1071FF" style="fill:#1071FF;fill:color(display-p3 0.0627 0.4431 1.0000);fill-opacity:1;"/>
+<path d="M1788.35 1164.5C1788.35 1164.5 1786.1 1317.3 1844.69 1619.28C1899.68 1902.34 1895.17 2299.87 1735.16 2517.12V987.822C1735.16 941.848 1754.09 902.185 1782.04 879.648L1788.35 940.947C2268.37 960.328 1788.35 1164.5 1788.35 1164.5Z" fill="#076AE2" style="fill:#076AE2;fill:color(display-p3 0.0275 0.4157 0.8863);fill-opacity:1;"/>
+<path d="M1769.88 890.955C1769.88 890.955 2989.54 890.955 3246.45 890.955C3399.69 890.955 3400.14 1023.47 3400.14 1023.47V929.717L3347.86 867.517L3291.07 862.109L2394.13 857.602L1815.86 867.067L1769.88 890.955Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3307.74 2751.53H1833.88C1770.78 2751.53 1719.85 2687.53 1719.85 2609.1V987.858C1719.85 909.432 1771.23 845.43 1833.88 845.43H3307.74C3370.84 845.43 3421.78 909.432 3421.78 987.858V2609.1C3421.78 2687.53 3370.84 2751.53 3307.74 2751.53ZM1834.33 875.177C1787.91 875.177 1750.05 925.658 1750.05 987.858V2609.1C1750.05 2671.3 1787.91 2721.78 1834.33 2721.78H3308.19C3354.62 2721.78 3392.48 2671.3 3392.48 2609.1V987.858C3392.48 925.658 3354.62 875.177 3308.19 875.177H1834.33Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2507.77 2414.28C2848.05 2414.28 3123.91 2138.43 3123.91 1798.14C3123.91 1457.86 2848.05 1182.01 2507.77 1182.01C2167.49 1182.01 1891.63 1457.86 1891.63 1798.14C1891.63 2138.43 2167.49 2414.28 2507.77 2414.28Z" fill="#076AE2" style="fill:#076AE2;fill:color(display-p3 0.0275 0.4157 0.8863);fill-opacity:1;"/>
+<path d="M2507.73 2418.82C2165.63 2418.82 1887.09 2140.27 1887.09 1798.17C1887.09 1456.08 2165.63 1177.53 2507.73 1177.53C2849.83 1177.53 3128.37 1456.08 3128.37 1798.17C3128.37 2140.27 2849.83 2418.82 2507.73 2418.82ZM2507.73 1187C2170.59 1187 1896.1 1461.49 1896.1 1798.63C1896.1 2135.77 2170.59 2410.25 2507.73 2410.25C2844.87 2410.25 3119.36 2135.77 3119.36 1798.63C3119.36 1461.04 2844.87 1187 2507.73 1187Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2990.38 1798.18C2990.38 1858.57 2979.11 1916.72 2958.82 1969.9C2889.86 2151.54 2713.63 2280.45 2507.65 2280.45C2324.21 2280.45 2165.1 2178.13 2083.07 2027.59C2046.11 1959.08 2024.93 1881.11 2024.93 1797.73C2024.93 1531.35 2240.83 1315.45 2507.65 1315.45C2774.03 1315.9 2990.38 1531.8 2990.38 1798.18Z" fill="#EFB000" style="fill:#EFB000;fill:color(display-p3 0.9373 0.6902 0.0000);fill-opacity:1;"/>
+<path d="M2210.23 1729.23L2439.64 1731.93L2485.17 1814.87L2911.1 1819.82L2955.72 1729.23L2979.61 1698.13L2943.1 1589.96L2436.49 1474.57L2263.86 1551.19L2236.37 1585L2210.23 1729.23Z" fill="#ED9700" style="fill:#ED9700;fill:color(display-p3 0.9294 0.5922 0.0000);fill-opacity:1;"/>
+<path d="M2958.91 1970.35C2889.95 2151.99 2713.72 2280.9 2507.74 2280.9C2324.29 2280.9 2165.19 2178.58 2083.16 2028.04L2107.5 2001C2299.5 2218.7 2612.75 2266.93 2900.31 2013.17C2923.3 1992.89 2942.23 1978.92 2958.91 1970.35Z" fill="#ED9700" style="fill:#ED9700;fill:color(display-p3 0.9294 0.5922 0.0000);fill-opacity:1;"/>
+<path d="M2122.35 1753.16H2430.64L2475.72 1840.15L2911.11 1835.65V1819.87L2493.74 1817.62L2439.66 1731.98L2119.2 1728.38L2122.35 1753.16Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3006.22 1798.19C3008.92 1995.61 2882.72 2186.26 2699.28 2260.18C2372.5 2395.85 2012.83 2150.66 2015.08 1798.19C2015.53 1447.53 2372.95 1206.4 2697.92 1339.81C2880.47 1412.83 3007.57 1601.23 3006.22 1798.19ZM2974.22 1798.19C2976.92 1612.95 2858.83 1434.91 2687.11 1365.05C2378.81 1236.14 2034.46 1463.31 2035.36 1798.19C2035.36 2130.37 2381.07 2355.73 2685.75 2228.18C2857.03 2159.67 2976.02 1982.99 2974.22 1798.19Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2236.33 1739.65C2230.02 1739.65 2225.06 1734.69 2225.06 1728.38V1629.22C2225.06 1622.91 2230.02 1617.95 2236.33 1617.95H2559.95C2564 1617.95 2568.06 1620.21 2569.86 1623.81L2614.04 1706.29H2961.99C2968.3 1706.29 2973.26 1711.25 2973.26 1717.56C2973.26 1723.87 2968.3 1728.83 2961.99 1728.83H2607.27C2603.22 1728.83 2599.16 1726.58 2597.36 1722.97L2553.19 1640.49H2247.6V1728.38C2247.6 1734.69 2242.64 1739.65 2236.33 1739.65Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2955.29 1640.41H2770.95C2766.89 1640.41 2762.83 1638.16 2761.03 1634.55L2716.86 1551.62H2411.27V1615.62C2411.27 1621.93 2406.31 1626.89 2400 1626.89C2393.69 1626.89 2388.73 1621.93 2388.73 1615.62V1540.35C2388.73 1534.04 2393.69 1529.09 2400 1529.09H2723.62C2727.68 1529.09 2731.73 1531.34 2733.54 1534.95L2777.71 1617.43H2955.29C2961.6 1617.43 2966.56 1622.39 2966.56 1628.7C2966.56 1635.01 2961.6 1640.41 2955.29 1640.41Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2145.86 2124.94C2139.55 2124.94 2134.59 2119.98 2134.59 2113.67C2134.59 1803.58 2108.9 1732.81 2108.9 1732.36C2107.55 1728.76 2108 1725.15 2110.25 1722C2112.51 1718.84 2115.66 1717.04 2119.72 1717.04H2443.34C2447.39 1717.04 2451.45 1719.29 2453.25 1722.9L2497.42 1805.38H2915.24C2921.55 1805.38 2926.51 1810.34 2926.51 1816.65C2926.51 1822.96 2921.55 1827.92 2915.24 1827.92H2490.66C2486.61 1827.92 2482.55 1825.66 2480.75 1822.06L2436.58 1739.58H2134.59C2142.25 1773.38 2157.58 1871.19 2157.58 2113.67C2157.13 2119.98 2152.17 2124.94 2145.86 2124.94Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2397.38 1972.16H2255.85C2247.29 1972.16 2240.08 1965.4 2239.63 1957.28L2236.47 1919.42C2235.57 1909.96 2243.23 1901.84 2252.7 1901.84H2395.12C2403.69 1901.84 2410.9 1908.6 2411.35 1917.62L2413.15 1955.48C2414.05 1964.49 2406.39 1972.16 2397.38 1972.16Z" fill="#F4CB64" style="fill:#F4CB64;fill:color(display-p3 0.9569 0.7961 0.3922);fill-opacity:1;"/>
+<path d="M2397.33 1976.65H2255.81C2244.99 1976.65 2235.98 1968.09 2235.07 1957.27L2231.92 1919.41C2231.47 1913.55 2233.27 1907.69 2237.33 1903.64C2241.38 1899.58 2246.79 1896.88 2252.65 1896.88H2395.08C2406.35 1896.88 2415.36 1905.44 2415.81 1916.71L2417.62 1954.57C2418.07 1960.43 2415.81 1965.84 2411.76 1969.89C2408.15 1974.4 2402.74 1976.65 2397.33 1976.65ZM2252.65 1906.34C2249.5 1906.34 2246.34 1907.69 2244.09 1909.95C2241.83 1912.2 2240.93 1915.81 2240.93 1918.96L2244.09 1956.82C2244.54 1963.13 2249.95 1967.64 2255.81 1967.64H2397.33C2400.49 1967.64 2403.64 1966.29 2405.9 1964.03C2408.15 1961.78 2409.5 1958.62 2409.05 1955.47L2407.25 1917.61C2406.8 1911.3 2401.84 1906.34 2395.53 1906.34H2252.65Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3218.44 1946.98L3217.09 1850.97C3216.19 1770.29 3149.48 1705.84 3069.25 1707.19C2988.57 1708.09 2924.12 1774.8 2925.47 1855.03L2926.82 1951.03C2881.3 1957.79 2847.05 1997.01 2847.5 2044.33L2850.2 2246.71C2851.1 2298.09 2893.02 2339.1 2944.4 2338.65L3210.78 2335.05C3262.16 2334.15 3303.18 2292.23 3302.73 2240.85L3300.02 2038.47C3299.12 1990.7 3263.96 1952.39 3218.44 1946.98ZM3070.15 1801.84C3098.55 1801.39 3121.99 1824.38 3121.99 1852.33L3123.34 1946.98L3020.57 1948.33L3019.22 1853.68C3019.22 1825.28 3042.21 1801.84 3070.15 1801.84Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M1603.99 1851.34C1553.06 1708.91 1593.62 1474.09 1593.62 1474.09L1518.8 1524.57L1524.66 1619.67L1540.89 1678.26L1561.62 1746.77L1603.99 1851.34Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M2064.71 1989.79C2013.78 1833.84 2029.55 1732.88 2029.55 1732.88C2029.55 1732.88 2035.86 1521.94 2223.36 1408.36C2410.86 1294.78 2558.25 1318.66 2558.25 1318.66C2558.25 1318.66 2714.2 1328.58 2827.33 1437.2C2940.91 1546.28 2942.71 1624.25 2942.71 1624.25L2770.54 1629.21L2719.15 1548.08L2405.9 1547.18L2395.09 1629.21H2236.43L2231.92 1728.37H2119.24L2134.57 1817.61L2148.09 1926.69L2145.84 2071.82L2132.77 2101.57L2081.38 2024.04L2064.71 1989.79Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M808.07 1168.57C1008.64 1178.04 1440.43 1128.91 1440.43 1128.91L1408.88 1083.84L808.07 1168.57Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M712.484 2623.91C815.7 2646.9 885.562 2673.94 885.562 2673.94L912.154 2641.04L899.534 2623.91H712.484Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M976.137 2681.16C1134.79 2605.88 1432.27 2583.8 1432.27 2583.8L1394.41 2543.23L1296.15 2579.74L1123.97 2615.35L954.953 2623.91L976.137 2681.16Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3173.85 1102.73C3174.75 1102.28 3175.65 1102.28 3177 1102.28C3186.02 1101.38 3195.93 1100.02 3204.95 1098.67C3215.31 1097.32 3224.33 1096.42 3234.24 1095.07C3237.4 1094.61 3240.1 1093.71 3242.81 1092.81C3256.78 1086.95 3260.38 1072.98 3255.43 1058.11C3248.22 1036.47 3229.28 1019.34 3206.3 1015.74C3176.1 1010.78 3144.1 1026.56 3133.28 1055.4C3128.77 1065.77 3127.87 1078.84 3129.22 1091.01C3133.73 1127.07 3164.83 1150.96 3200.44 1148.25C3214.41 1147.35 3228.38 1143.29 3239.65 1134.73C3247.76 1128.87 3256.78 1120.76 3253.17 1109.94C3250.47 1100.93 3241.9 1095.97 3232.89 1099.57C3230.19 1100.47 3227.48 1102.73 3225.23 1104.08C3222.07 1106.33 3218.47 1108.59 3214.86 1110.39C3204.95 1114.9 3188.72 1116.7 3178.8 1111.74C3176.55 1110.84 3173.4 1108.59 3172.49 1106.33C3171.59 1105.43 3172.49 1103.63 3173.85 1102.73ZM3169.34 1071.18C3167.99 1070.73 3167.09 1069.83 3167.09 1068.47C3167.09 1067.57 3167.09 1066.22 3167.54 1065.32C3171.14 1055.4 3180.61 1049.54 3191.87 1048.64C3201.34 1047.74 3211.71 1050.89 3217.57 1059.91C3218.02 1060.36 3218.47 1061.26 3218.47 1061.71C3218.47 1062.16 3218.47 1063.06 3218.47 1063.52C3218.02 1064.87 3216.66 1065.77 3215.31 1065.77C3204.04 1067.12 3184.21 1069.37 3172.04 1071.18C3171.14 1071.18 3170.24 1071.18 3169.34 1071.18Z" fill="#232323" stroke="#1071FF" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;stroke:#1071FF;stroke:color(display-p3 0.0627 0.4431 1.0000);stroke-opacity:1;" stroke-width="0.292716" stroke-miterlimit="10"/>
+<path d="M1022.36 821.828C1023.55 821.432 1024.75 821.432 1025.94 821.432C1037.08 820.64 1049.01 820.243 1060.14 819.451C1072.87 818.658 1084.01 818.262 1096.33 817.47C1099.91 817.073 1103.89 816.281 1107.07 815.092C1124.57 809.148 1130.14 792.109 1125.37 773.881C1118.21 746.936 1096.33 724.349 1068.89 718.406C1032.3 710.084 992.134 726.727 975.828 760.805C969.862 773.089 967.078 788.939 968.271 803.601C971.055 847.585 1006.85 879.682 1051 879.285C1068.49 879.285 1085.99 875.719 1100.31 866.209C1110.65 859.473 1122.19 850.755 1119 836.886C1116.22 825.791 1106.28 818.658 1095.14 822.621C1091.56 823.81 1088.38 825.791 1085.2 827.772C1080.82 830.15 1076.45 832.924 1071.68 834.509C1059.35 839.264 1039.46 840.056 1027.53 833.32C1025.14 831.735 1020.77 828.961 1019.97 826.187C1019.18 824.602 1020.37 822.621 1022.36 821.828ZM1019.58 782.599C1017.99 782.203 1016.79 781.014 1016.79 779.429C1016.79 778.24 1017.19 776.655 1017.59 775.466C1022.76 763.579 1035.09 757.239 1048.61 757.239C1060.54 756.842 1072.87 761.598 1079.23 773.089C1079.63 773.881 1080.03 774.674 1080.03 775.466C1080.03 776.259 1080.03 777.051 1079.63 777.844C1078.83 779.429 1077.24 780.222 1075.26 780.222C1061.34 781.014 1036.68 782.203 1021.96 782.995C1021.17 782.995 1020.37 782.995 1019.58 782.599Z" fill="white" stroke="#1071FF" style="fill:white;fill-opacity:1;stroke:#1071FF;stroke:color(display-p3 0.0627 0.4431 1.0000);stroke-opacity:1;" stroke-width="0.585431" stroke-miterlimit="10"/>
+<path d="M2210.19 2170.97C2102.47 2082.63 2033.96 1948.32 2033.96 1798.23C2033.96 1759.47 2038.47 1722.06 2047.03 1685.55L2210.19 2170.97Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3030.64 2160.11C2950.41 2151.99 2892.27 2079.88 2900.38 2000.1L2919.76 1811.25C2927.87 1731.02 2999.99 1672.88 3079.77 1680.99C3160 1689.1 3218.14 1761.22 3210.03 1841L3190.65 2029.85C3182.53 2110.08 3110.42 2168.22 3030.64 2160.11ZM3070.3 1775.19C3042.36 1772.49 3016.67 1792.77 3013.96 1821.16L2994.58 2010.02C2991.88 2037.96 3012.16 2063.65 3040.55 2066.36C3068.5 2069.06 3094.19 2048.78 3096.9 2020.38L3116.28 1831.53C3118.98 1803.14 3098.25 1777.9 3070.3 1775.19Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3029.39 2169.64C2970.35 2163.33 2919.42 2125.47 2898.23 2069.58C2891.47 2052.91 2888.32 2034.43 2887.87 2016.4C2887.87 1994.31 2895.53 1926.71 2897.33 1904.17L2904.99 1823.49C2905.9 1809.97 2907.7 1794.64 2911.76 1781.12C2932.04 1707.65 3005.96 1658.08 3081.68 1666.19C3161.46 1673.85 3225.46 1743.71 3225.01 1824.39C3224.56 1846.48 3215.54 1914.08 3213.74 1936.62L3204.72 2017.3C3203.37 2030.82 3201.12 2046.15 3197.06 2059.22C3175.88 2130.88 3103.76 2178.21 3029.39 2169.64ZM3031.65 2150.71C3099.26 2157.02 3162.81 2110.6 3176.33 2043.89C3179.93 2024.96 3184.89 1955.1 3187.15 1934.37C3188.5 1913.18 3196.61 1844.67 3196.61 1824.84C3195.26 1763.54 3151.54 1710.36 3091.59 1697.74C3024.89 1683.77 2957.73 1723.88 2937.9 1788.78C2934.29 1800.95 2932.94 1813.12 2931.59 1826.19L2922.57 1906.87C2920.77 1928.06 2911.3 1996.57 2911.3 2016.4C2910.85 2084.01 2964.04 2143.95 3031.65 2150.71Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3068.99 1784.73C3043.3 1782.02 3023.02 1803.66 3023.92 1829.35L3016.71 1916.79L3009.05 2004.23C3004.09 2027.22 3018.51 2049.3 3041.5 2051.56C3064.48 2053.81 3082.96 2035.33 3082.96 2011.89C3086.12 1983.05 3089.72 1953.75 3093.33 1924.9L3104.15 1837.91C3110.01 1812.67 3094.68 1787.88 3068.99 1784.73ZM3071.25 1765.35C3102.34 1767.6 3128.49 1796.45 3127.13 1827.55C3127.13 1831.15 3119.47 1919.95 3119.02 1926.71C3116.32 1956 3114.06 1984.85 3111.36 2014.15C3110.91 2021.81 3109.56 2032.18 3105.95 2039.39C3095.58 2065.98 3066.74 2083.56 3038.34 2079.95C3009.95 2077.25 2985.16 2054.26 2980.65 2026.32C2978.85 2018.2 2979.75 2007.84 2980.65 2000.17L2991.02 1913.18C2991.92 1906.42 3002.74 1818.08 3003.19 1814.48C3009.05 1784.28 3040.15 1761.74 3071.25 1765.35Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3270.82 2036.16L3250.09 2237.63C3244.68 2289.02 3199.16 2325.98 3147.77 2320.57L2882.75 2293.07C2839.03 2288.57 2805.68 2254.76 2799.82 2213.29C2798.92 2206.08 2798.92 2198.42 2799.37 2190.76L2820.1 1989.29C2825.51 1937.9 2871.03 1900.94 2922.41 1906.35L3187.44 1933.4C3192.4 1933.85 3196.9 1934.75 3201.41 1936.1C3216.73 1940.16 3230.71 1947.82 3241.97 1958.19C3245.13 1961.34 3248.28 1964.5 3251.44 1968.1C3265.86 1987.48 3273.53 2011.37 3270.82 2036.16Z" fill="#08A7FF" style="fill:#08A7FF;fill:color(display-p3 0.0314 0.6549 1.0000);fill-opacity:1;"/>
+<path d="M3262.33 1970.4C3262.33 1970.4 3258.27 1969.95 3251.06 1969.05C3198.33 1963.19 2978.82 1938.85 2935.55 1934.79C2885.98 1930.28 2849.92 1961.83 2840.9 2033.95C2831.89 2106.06 2818.37 2254.8 2818.37 2254.8L2799.89 2213.79C2798.99 2206.58 2798.99 2198.91 2799.44 2191.25L2820.17 1989.78C2825.58 1938.4 2871.1 1901.44 2922.48 1906.85L3187.51 1933.89C3192.47 1934.34 3196.97 1935.24 3201.48 1936.59L3242.05 1958.68L3262.33 1970.4Z" fill="white" style="fill:white;fill-opacity:1;"/>
+<path d="M3146.4 2335.05C3111.24 2331.45 2941.32 2312.52 2909.77 2308.91C2905.71 2308.46 2884.08 2306.21 2880.02 2305.76C2832.69 2300.8 2792.58 2260.23 2788.07 2212.91C2786.72 2200.29 2788.52 2186.32 2789.88 2175.05L2794.83 2127.72C2796.64 2110.14 2805.65 2024.96 2807.45 2009.63C2808.81 2000.17 2809.26 1988.9 2811.06 1978.98C2817.82 1946.53 2840.81 1917.69 2871.46 1904.61C2887.68 1897.4 2905.71 1894.7 2923.29 1896.5C2970.61 1901.46 3065.27 1910.47 3112.59 1914.98C3134.68 1917.24 3174.79 1920.39 3196.43 1923.55C3236.54 1930.31 3271.25 1961.86 3280.71 2001.97C3285.67 2018.2 3283.87 2037.58 3282.06 2053.8L3277.56 2101.13C3275.75 2118.71 3267.64 2203.89 3266.29 2219.67C3264.94 2229.13 3264.49 2240.85 3262.68 2250.77C3252.32 2303.5 3200.48 2341.36 3146.4 2335.05ZM3149.1 2306.66C3188.31 2310.71 3226.17 2282.77 3234.29 2244.46C3235.64 2236.35 3236.99 2225.08 3237.89 2216.51C3242.4 2173.7 3251.41 2093.47 3255.92 2051.1C3257.72 2035.77 3259.53 2022.7 3255.92 2008.28C3248.71 1974.03 3216.71 1948.33 3182 1946.53C3167.13 1944.73 3126.56 1940.22 3111.24 1938.87C3063.91 1933.91 2969.26 1923.55 2921.94 1918.59C2907.96 1917.23 2893.54 1919.49 2880.92 1924.9C2856.58 1935.26 2838.1 1957.8 2833.14 1983.49C2831.34 1991.6 2830.89 2003.32 2829.99 2011.89C2828.64 2026.76 2819.62 2113.3 2818.27 2130.43L2813.76 2177.75C2812.41 2193.08 2810.61 2206.6 2814.67 2221.02C2821.88 2251.22 2848.47 2276.01 2879.12 2280.97C2933.21 2286.38 3091.41 2300.8 3149.1 2306.66Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3219.93 1901.78H3081.56C3056.32 1901.78 3035.59 1881.04 3035.59 1855.8V1844.54C3035.59 1819.3 3056.32 1798.56 3081.56 1798.56H3219.93C3245.17 1798.56 3265.9 1819.3 3265.9 1844.54V1855.8C3265.9 1881.04 3245.17 1901.78 3219.93 1901.78Z" fill="#076AE2" style="fill:#076AE2;fill:color(display-p3 0.0275 0.4157 0.8863);fill-opacity:1;"/>
+<path d="M3219.89 1915.77C3177.97 1915.77 3132.9 1914.42 3090.98 1913.51L3081.97 1913.06C3050.87 1913.06 3024.28 1885.57 3025.18 1854.92V1845.91C3024.28 1815.71 3050.87 1788.21 3081.07 1789.12C3119.38 1789.12 3181.13 1789.12 3218.99 1788.67C3249.64 1787.31 3277.13 1814.81 3276.23 1845.46V1854.47C3278.48 1885.57 3252.79 1916.22 3219.89 1915.77ZM3219.89 1887.37C3237.92 1887.82 3255.5 1873.4 3255.05 1854.02V1845.01C3255.95 1825.17 3238.82 1807.6 3218.99 1808.05H3209.97C3198.26 1808.05 3166.71 1807.6 3154.99 1807.6H3081.52C3071.6 1807.6 3062.14 1811.65 3055.38 1818.86C3048.62 1826.07 3045.01 1835.09 3045.46 1845.46C3045.46 1855.37 3045.46 1866.64 3051.77 1875.2C3058.53 1885.12 3070.25 1890.98 3081.97 1890.08L3090.98 1889.63L3109.46 1889.18C3145.07 1888.73 3184.28 1887.82 3219.89 1887.37Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3035.54 2152.41C3063.42 2152.41 3086.02 2129.81 3086.02 2101.93C3086.02 2074.05 3063.42 2051.45 3035.54 2051.45C3007.66 2051.45 2985.06 2074.05 2985.06 2101.93C2985.06 2129.81 3007.66 2152.41 3035.54 2152.41Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M3025.64 2200.19C3015.27 2199.29 3007.61 2189.83 3008.51 2179.46L3015.72 2111.4C3016.62 2101.04 3026.09 2093.37 3036.45 2094.28C3046.82 2095.18 3054.48 2104.64 3053.58 2115.01L3046.37 2183.07C3045.02 2193.88 3036 2201.55 3025.64 2200.19Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M225.754 2298.04C415.958 2313.37 534.949 2118.2 534.949 2118.2L426.775 2206.54L329.42 2239L243.332 2252.52L223.5 2264.69L225.754 2298.04Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+<path d="M978.63 1365.42C1076.78 1301.03 1126.61 1295.44 1230.93 1358.61C1255.26 1373.21 1248.47 1397.26 1228.09 1406.33C1179.35 1428.05 1039.35 1434.42 983.298 1417.36C957.313 1409.22 951.858 1383.01 978.581 1365.38L978.63 1365.42Z" fill="#FF814A" style="fill:#FF814A;fill:color(display-p3 1.0000 0.5059 0.2902);fill-opacity:1;"/>
+<path d="M971.961 1355.24C1006.93 1333.35 1045.86 1311.79 1087.85 1305.68C1130.76 1299.21 1174.28 1315.12 1211.21 1334.27C1219.03 1338.05 1226.5 1342.45 1234.1 1346.62C1239.38 1349.49 1245.12 1353.16 1249.3 1357.96C1266.86 1375.73 1259.12 1404.76 1238.21 1416.16C1230.31 1420.68 1220 1423.97 1211.28 1426.68C1152 1443.73 1025.42 1452.13 969.237 1426.11C938.248 1408.49 943.829 1371.7 971.963 1355.29L971.961 1355.24ZM985.319 1375.61C969.986 1386.01 969.643 1400.3 989.126 1404.56L998.061 1406.56C1049.07 1414.32 1104.03 1412.42 1155.77 1407.62C1175.07 1405.47 1194.5 1402.71 1213.17 1397.38C1213.72 1397.03 1222.91 1394.16 1223.41 1393.67C1228.01 1391.72 1232.49 1387.79 1233.59 1382.94C1235.01 1376.34 1227.58 1370.28 1221.81 1367.09C1214.72 1362.81 1207.63 1358.16 1200.37 1354.27C1113.7 1303.59 1063.27 1321.41 985.27 1375.56L985.319 1375.61Z" fill="#232323" style="fill:#232323;fill:color(display-p3 0.1375 0.1375 0.1375);fill-opacity:1;"/>
+</svg>
diff --git a/web/apps/locker/public/images/auth-frame-curves.svg b/web/apps/locker/public/images/auth-frame-curves.svg
new file mode 100644
index 0000000000..215389c5c0
--- /dev/null
+++ b/web/apps/locker/public/images/auth-frame-curves.svg
@@ -0,0 +1,3 @@
+<svg width="1357" height="715" viewBox="0 0 1357 715" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M170.065 -10.9783C252.3 109.821 131.817 230.62 68.0684 324.18C4.32028 417.74 -36.4785 570.516 47.0315 558.673C130.542 546.83 263.138 -33.4801 602.278 -51.2447C941.418 -69.0093 367.685 49.4213 455.657 242.463C543.63 435.505 778.223 133.51 999.429 4.42031C1220.63 -124.669 833.684 276.811 539.805 546.832C245.926 816.854 404.021 1065.56 608.015 812.117C812.009 558.673 1136.49 390.504 1281.2 728.031C1425.9 1065.56 1567.42 1109.38 1434.83 861.858C1302.23 614.338 1081.66 -18.0815 1272.27 -41.7676C1462.88 -65.4537 1509.41 -103.351 1571.25 480.511C1633.09 1064.37 1484.55 908.045 1420.17 655.788C1355.78 403.531 1490.93 139.431 1523.44 728.031C1555.95 1316.63 10.0578 1117.67 200.027 896.202C389.997 674.737 261.225 273.258 73.8059 728.031" stroke="#fff" style="stroke:#fff;stroke-opacity:.18;"/>
+</svg>
diff --git a/web/apps/locker/public/images/auth-surface-noise.svg b/web/apps/locker/public/images/auth-surface-noise.svg
new file mode 100644
index 0000000000..3b2c16d6ec
--- /dev/null
+++ b/web/apps/locker/public/images/auth-surface-noise.svg
@@ -0,0 +1,7 @@
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 700 700" width="700" height="700"><defs><filter id="nnnoise-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="linearRGB">
+ <feTurbulence type="fractalNoise" baseFrequency="0.079" numOctaves="4" seed="15" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence>
+ <feSpecularLighting surfaceScale="14" specularConstant="0.6" specularExponent="20" lighting-color="#a9a9a9" x="0%" y="0%" width="100%" height="100%" in="turbulence" result="specularLighting">
+ <feDistantLight azimuth="3" elevation="111"></feDistantLight>
+ </feSpecularLighting>
+
+</filter></defs><rect width="700" height="700" fill="#1071ff00"></rect><rect width="700" height="700" fill="#a9a9a9" filter="url(#nnnoise-filter)"></rect></svg>
diff --git a/web/apps/locker/src/components/LockerAuthShell.tsx b/web/apps/locker/src/components/LockerAuthShell.tsx
new file mode 100644
index 0000000000..8d05398efc
--- /dev/null
+++ b/web/apps/locker/src/components/LockerAuthShell.tsx
@@ -0,0 +1,470 @@
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
+import { GlobalStyles, keyframes, styled } from "@mui/material";
+import { EnteLogo } from "ente-base/components/EnteLogo";
+import { t } from "i18next";
+import type React from "react";
+import {
+ authAboveMobileMediaQuery,
+ authColorVariables,
+ authDisplayFontFamily,
+ authMobileMediaQuery,
+} from "./auth/styles";
+
+interface LockerAuthShellProps extends React.PropsWithChildren {
+ contentWidth?: 400 | 420;
+}
+
+export const LockerAuthShell: React.FC<LockerAuthShellProps> = ({
+ children,
+ contentWidth = 400,
+}) => (
+ <PageRoot>
+ <GlobalStyles styles={authColorVariables} />
+ <FrameCurves />
+ <PageCard>
+ <DesktopBrandSlot>
+ <BrandPanel
+ headline={t("locker_auth_headline")}
+ size="desktop"
+ />
+ </DesktopBrandSlot>
+ <TabletBrandSlot>
+ <BrandPanel
+ headline={t("locker_auth_headline")}
+ size="tablet"
+ />
+ </TabletBrandSlot>
+ <MobileBrandSlot>
+ <BrandPanel
+ headline={t("locker_auth_headline")}
+ size="mobile"
+ />
+ </MobileBrandSlot>
+ <ContentSheet>
+ <SheetHandle />
+ <ContentColumn contentWidth={contentWidth}>
+ {children}
+ </ContentColumn>
+ </ContentSheet>
+ </PageCard>
+ </PageRoot>
+);
+
+const shellReveal = keyframes({
+ from: { opacity: 0, transform: "translateY(18px)" },
+ to: { opacity: 1, transform: "translateY(0)" },
+});
+
+const brandCopyReveal = keyframes({
+ from: { opacity: 0, transform: "translateY(12px)" },
+ to: { opacity: 1, transform: "translateY(0)" },
+});
+
+const illustrationReveal = keyframes({
+ from: { opacity: 0, transform: "translateY(18px) scale(0.98)" },
+ to: { opacity: 1, transform: "translateY(0) scale(1)" },
+});
+
+const cameraSparkle = keyframes({
+ from: {
+ opacity: 0,
+ transform: "translate(-50%, -50%) scale(0) rotate(-20deg)",
+ },
+ "35%": {
+ opacity: 1,
+ transform: "translate(-50%, -50%) scale(1) rotate(0)",
+ },
+ "70%": {
+ opacity: 0.85,
+ transform: "translate(-50%, -50%) scale(0.72) rotate(24deg)",
+ },
+ to: {
+ opacity: 0,
+ transform: "translate(-50%, -50%) scale(1.3) rotate(45deg)",
+ },
+});
+
+const brandCurvesDrift = keyframes({
+ "0%, 100%": { backgroundPosition: "0 0, calc(50% - 6px) calc(50% + 4px)" },
+ "50%": { backgroundPosition: "0 0, calc(50% + 6px) calc(50% - 4px)" },
+});
+
+const brandCopyAnimation = {
+ animation: `${brandCopyReveal} 520ms cubic-bezier(0.22, 1, 0.36, 1) both`,
+ "@media (prefers-reduced-motion: reduce)": { animation: "none" },
+};
+
+interface BrandPanelProps {
+ headline: string;
+ size: "desktop" | "tablet" | "mobile";
+}
+
+const BrandPanel: React.FC<BrandPanelProps> = ({ headline, size }) => (
+ <BrandPanelRoot size={size}>
+ <Wordmark size={size}>
+ <EnteLogo />
+ </Wordmark>
+ <PanelCopy size={size}>
+ <PanelHeadline size={size}>{headline}</PanelHeadline>
+ {size !== "mobile" && (
+ <PanelSubtitle size={size}>
+ {t("photos_auth_subtitle")}
+ </PanelSubtitle>
+ )}
+ {size === "desktop" && (
+ <BulletList>
+ {[
+ t("locker_auth_free_files"),
+ t("photos_auth_no_ads_no_spying"),
+ t("photos_auth_open_source_audited"),
+ ].map((bullet) => (
+ <Bullet key={bullet}>
+ <CheckCircle aria-hidden="true">
+ <HugeiconsIcon
+ icon={Tick02Icon}
+ size={12}
+ strokeWidth={3}
+ />
+ </CheckCircle>
+ <span>{bullet}</span>
+ </Bullet>
+ ))}
+ </BulletList>
+ )}
+ </PanelCopy>
+ <IllustrationClip size={size}>
+ <img src="/images/auth-ducky.svg" alt="" />
+ </IllustrationClip>
+ </BrandPanelRoot>
+);
+
+const PageRoot = styled("main")(({ theme }) => ({
+ width: "100%",
+ height: "100svh",
+ minHeight: "100svh",
+ display: "flex",
+ position: "relative",
+ overflow: "hidden",
+ boxSizing: "border-box",
+ backgroundColor: "#f4f4f4",
+ ...theme.applyStyles("dark", { backgroundColor: "#0a0a0a" }),
+ [authAboveMobileMediaQuery]: { padding: "40px" },
+ "@media (min-width: 1024px)": {
+ padding: 0,
+ alignItems: "center",
+ justifyContent: "center",
+ },
+}));
+
+const FrameCurves = styled("div")(({ theme }) => ({
+ display: "none",
+ opacity: 0.3,
+ ...theme.applyStyles("dark", { opacity: 0.02 }),
+ [authAboveMobileMediaQuery]: {
+ display: "block",
+ position: "absolute",
+ inset: 0,
+ backgroundImage: 'url("/images/auth-frame-curves.svg")',
+ backgroundRepeat: "no-repeat",
+ backgroundSize: "cover",
+ backgroundPosition: "center",
+ pointerEvents: "none",
+ },
+}));
+
+const PageCard = styled("div")(({ theme }) => ({
+ width: "100%",
+ height: "100%",
+ minHeight: 0,
+ display: "flex",
+ flexDirection: "column",
+ position: "relative",
+ overflow: "hidden",
+ backgroundColor: "#fff",
+ animation: `${shellReveal} 620ms cubic-bezier(0.22, 1, 0.36, 1) both`,
+ ...theme.applyStyles("dark", { backgroundColor: "#252525" }),
+ "@media (prefers-reduced-motion: reduce)": { animation: "none" },
+ [authAboveMobileMediaQuery]: { borderRadius: "24px" },
+ "@media (min-width: 1024px)": {
+ width: "1032px",
+ height: "min(780px, 100%)",
+ flexDirection: "row",
+ },
+ "@media (min-width: 1600px)": {
+ width: "1240px",
+ height: "min(900px, 100%)",
+ },
+}));
+
+const DesktopBrandSlot = styled("div")({
+ display: "none",
+ "@media (min-width: 1024px)": {
+ display: "block",
+ flex: "0 0 440px",
+ height: "100%",
+ },
+ "@media (min-width: 1600px)": { flexBasis: "496px" },
+});
+
+const TabletBrandSlot = styled("div")({
+ display: "none",
+ [`${authAboveMobileMediaQuery} and (max-width: 1023px)`]: {
+ display: "block",
+ // Grows with the copy when it wraps at narrow widths; the band's
+ // 268px design height is enforced as a minimum by BrandPanelRoot.
+ flex: "0 0 auto",
+ position: "relative",
+ overflow: "hidden",
+ },
+});
+
+const MobileBrandSlot = styled("div")({
+ display: "block",
+ flex: "0 0 232px",
+ minHeight: 0,
+ position: "relative",
+ overflow: "hidden",
+ [authAboveMobileMediaQuery]: { display: "none" },
+});
+
+const ContentSheet = styled("section")(({ theme }) => ({
+ flex: 1,
+ minHeight: 0,
+ marginTop: "-28px",
+ padding: "40px 24px 24px",
+ display: "flex",
+ flexDirection: "column",
+ gap: "24px",
+ position: "relative",
+ zIndex: 1,
+ overflowY: "auto",
+ boxSizing: "border-box",
+ borderRadius: "24px 24px 0 0",
+ backgroundColor: "#fff",
+ ...theme.applyStyles("dark", { backgroundColor: "#252525" }),
+ [authAboveMobileMediaQuery]: {
+ marginTop: "-32px",
+ padding: "16px 48px 48px",
+ },
+ "@media (min-width: 1024px)": {
+ width: "592px",
+ marginTop: 0,
+ padding: "48px 96px",
+ alignItems: "center",
+ justifyContent: "center",
+ borderRadius: 0,
+ },
+ "@media (min-width: 1600px)": { width: "744px", padding: "56px 172px" },
+}));
+
+const SheetHandle = styled("div")({
+ width: "36px",
+ height: "4px",
+ flexShrink: 0,
+ alignSelf: "center",
+ borderRadius: "999px",
+ backgroundColor: "var(--locker-auth-fill-active)",
+ [authMobileMediaQuery]: { display: "none" },
+ "@media (min-width: 1024px)": { display: "none" },
+});
+
+const ContentColumn = styled("div", {
+ shouldForwardProp: (prop) => prop !== "contentWidth",
+})<{ contentWidth: 400 | 420 }>(({ contentWidth }) => ({
+ width: "100%",
+ minHeight: "min-content",
+ display: "flex",
+ flexDirection: "column",
+ gap: "24px",
+ [authMobileMediaQuery]: { flexGrow: 1 },
+ [authAboveMobileMediaQuery]: {
+ width: "440px",
+ maxWidth: "100%",
+ marginBlock: "auto",
+ alignSelf: "center",
+ },
+ "@media (min-width: 1024px)": { width: `${contentWidth}px` },
+ "@media (min-width: 1600px)": { gap: "28px" },
+}));
+
+const BrandPanelRoot = styled("div", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ width: "100%",
+ height: size === "tablet" ? "auto" : "100%",
+ ...(size === "tablet" && { minHeight: "268px", rowGap: "24px" }),
+ padding:
+ size === "desktop"
+ ? "44px"
+ : size === "tablet"
+ ? "40px 40px 60px"
+ : "18px 16px 40px",
+ display: "flex",
+ flexDirection: "column",
+ justifyContent: size === "desktop" ? "flex-start" : "space-between",
+ position: "relative",
+ overflow: "hidden",
+ boxSizing: "border-box",
+ color: "#fff",
+ backgroundColor: "var(--locker-auth-primary)",
+ backgroundImage:
+ 'url("/images/auth-surface-noise.svg"), url("/images/auth-frame-curves.svg")',
+ backgroundRepeat: "repeat, no-repeat",
+ backgroundPosition: "0 0, center",
+ backgroundSize: "auto, cover",
+ animation: `${brandCurvesDrift} 20s ease-in-out infinite`,
+ "@supports (color: color(display-p3 1 1 1))": {
+ backgroundColor: "color(display-p3 0.0627 0.4431 1)",
+ },
+ "@media (prefers-reduced-motion: reduce)": { animation: "none" },
+}));
+
+const Wordmark = styled("div", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ width: size === "desktop" ? "83px" : size === "tablet" ? "77px" : "64px",
+ height: size === "desktop" ? "26px" : size === "tablet" ? "24px" : "20px",
+ flexShrink: 0,
+ margin: size === "mobile" ? "8px 0 0 8px" : 0,
+ lineHeight: 0,
+ position: "relative",
+ zIndex: 1,
+ "& > svg": { width: "100%", height: "100%" },
+}));
+
+const PanelCopy = styled("div", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ marginTop: size === "desktop" ? "36px" : 0,
+ marginLeft: size === "mobile" ? "8px" : 0,
+ // On the tablet band the ducky is anchored to the right edge, so keep
+ // the copy from running underneath it at narrow widths.
+ ...(size === "tablet" && { maxWidth: "calc(100% - 245px)" }),
+ position: "relative",
+ zIndex: 1,
+}));
+
+const PanelHeadline = styled("h1", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ maxWidth:
+ size === "desktop" ? "300px" : size === "tablet" ? "380px" : "188px",
+ margin: 0,
+ fontFamily: authDisplayFontFamily,
+ fontSize: size === "desktop" ? "42px" : size === "tablet" ? "34px" : "26px",
+ fontWeight: 600,
+ lineHeight:
+ size === "desktop" ? "50px" : size === "tablet" ? "42px" : "34px",
+ letterSpacing: "-0.02em",
+ textWrap: "pretty",
+ ...brandCopyAnimation,
+ animationDelay: "80ms",
+}));
+
+const PanelSubtitle = styled("p", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ margin: 0,
+ marginTop: size === "desktop" ? "14px" : "10px",
+ fontSize: size === "desktop" ? "20px" : "17px",
+ fontWeight: 500,
+ lineHeight: size === "desktop" ? "28px" : "24px",
+ color: "rgba(255, 255, 255, 0.88)",
+ ...brandCopyAnimation,
+ animationDelay: "170ms",
+}));
+
+const BulletList = styled("ul")({
+ margin: "34px 0 0",
+ padding: 0,
+ display: "flex",
+ flexDirection: "column",
+ gap: "14px",
+ listStyle: "none",
+});
+
+const Bullet = styled("li")({
+ display: "flex",
+ alignItems: "center",
+ gap: "12px",
+ fontSize: "17px",
+ fontWeight: 500,
+ lineHeight: "24px",
+ ...brandCopyAnimation,
+ "&:nth-of-type(1)": { animationDelay: "280ms" },
+ "&:nth-of-type(2)": { animationDelay: "350ms" },
+ "&:nth-of-type(3)": { animationDelay: "420ms" },
+});
+
+const CheckCircle = styled("span")({
+ width: "24px",
+ height: "24px",
+ flex: "0 0 24px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ borderRadius: "50%",
+ backgroundColor: "rgba(255, 255, 255, 0.14)",
+});
+
+const IllustrationClip = styled("div", {
+ shouldForwardProp: (prop) => prop !== "size",
+})<{ size: BrandPanelProps["size"] }>(({ size }) => ({
+ width: size === "desktop" ? "313px" : size === "tablet" ? "237px" : "175px",
+ height:
+ size === "desktop" ? "219px" : size === "tablet" ? "172px" : "127px",
+ flexShrink: 0,
+ position: "relative",
+ overflow: "hidden",
+ zIndex: 0,
+ ...(size !== "tablet" && {
+ animation: `${illustrationReveal} 500ms cubic-bezier(0.22, 1, 0.36, 1) ${size === "desktop" ? "840ms" : "130ms"} both`,
+ "@media (prefers-reduced-motion: reduce)": { animation: "none" },
+ }),
+ ...(size === "desktop"
+ ? {
+ marginTop: "auto",
+ alignSelf: "center",
+ "@media (min-width: 1600px)": { width: "355px", height: "249px" },
+ }
+ : {
+ position: "absolute",
+ right: size === "tablet" ? "28px" : "-4px",
+ // Sit clear of the content sheet, which overlaps the band's
+ // bottom edge by 32px (tablet) / 28px (mobile).
+ bottom: size === "tablet" ? "44px" : "38px",
+ }),
+ "&::after": {
+ content: '""',
+ width:
+ size === "desktop" ? "34px" : size === "tablet" ? "26px" : "20px",
+ aspectRatio: "1",
+ position: "absolute",
+ left: "67%",
+ top: size === "desktop" ? "59%" : "57%",
+ zIndex: 1,
+ pointerEvents: "none",
+ backgroundColor: "#fff",
+ clipPath:
+ "polygon(50% 0%, 59% 39%, 100% 50%, 59% 61%, 50% 100%, 41% 61%, 0% 50%, 41% 39%)",
+ filter: "drop-shadow(0 0 7px rgba(255, 245, 168, 0.95))",
+ animation: `${cameraSparkle} 520ms ease-out ${size === "desktop" ? "1400ms" : size === "tablet" ? "740ms" : "690ms"} both`,
+ "@media (prefers-reduced-motion: reduce)": { display: "none" },
+ },
+ "& > img": {
+ display: "block",
+ width: "473.694px",
+ height: "370px",
+ transformOrigin: "top left",
+ transform:
+ size === "desktop"
+ ? "scale(0.66)"
+ : size === "tablet"
+ ? "scale(0.5)"
+ : "scale(0.37)",
+ ...(size === "desktop" && {
+ "@media (min-width: 1600px)": { transform: "scale(0.75)" },
+ }),
+ },
+}));
diff --git a/web/apps/locker/src/components/auth/AuthDialog.tsx b/web/apps/locker/src/components/auth/AuthDialog.tsx
new file mode 100644
index 0000000000..8b3c1ebbaa
--- /dev/null
+++ b/web/apps/locker/src/components/auth/AuthDialog.tsx
@@ -0,0 +1,111 @@
+import {
+ Dialog,
+ GlobalStyles,
+ Slide,
+ styled,
+ type ModalProps,
+} from "@mui/material";
+import type { TransitionProps } from "@mui/material/transitions";
+import React, { forwardRef } from "react";
+import {
+ authBodyTypography,
+ authColorVariables,
+ authDisplayFontFamily,
+ authMobileMediaQuery,
+} from "./styles";
+
+interface AuthDialogProps extends React.PropsWithChildren {
+ open: boolean;
+ onClose: ModalProps["onClose"];
+ ariaLabelledby?: string;
+}
+
+const SlideUpTransition = forwardRef(function SlideUpTransition(
+ props: TransitionProps & { children: React.ReactElement },
+ ref: React.Ref<unknown>,
+) {
+ return <Slide direction="up" ref={ref} {...props} />;
+});
+
+export const AuthDialog: React.FC<AuthDialogProps> = ({
+ open,
+ onClose,
+ ariaLabelledby,
+ children,
+}) => (
+ <DialogRoot
+ open={open}
+ onClose={onClose}
+ slots={{ transition: SlideUpTransition }}
+ slotProps={{
+ backdrop: { sx: { backgroundColor: "rgba(0, 0, 0, 0.4)" } },
+ }}
+ maxWidth={false}
+ aria-labelledby={ariaLabelledby}
+ >
+ <GlobalStyles styles={authColorVariables} />
+ <SheetHandle />
+ {children}
+ </DialogRoot>
+);
+
+export const AuthDialogHeader = styled("div")({
+ display: "flex",
+ flexDirection: "column",
+ gap: "6px",
+});
+
+export const AuthDialogTitle = styled("h2")({
+ margin: 0,
+ fontFamily: authDisplayFontFamily,
+ fontSize: "22px",
+ fontWeight: 600,
+ lineHeight: "30px",
+ color: "var(--locker-auth-text)",
+ [authMobileMediaQuery]: { fontSize: "20px", lineHeight: "28px" },
+});
+
+export const AuthDialogText = styled("p")({
+ ...authBodyTypography,
+ margin: 0,
+ color: "var(--locker-auth-text-muted)",
+ textWrap: "pretty",
+});
+
+const DialogRoot = styled(Dialog)(({ theme }) => ({
+ "& .MuiDialog-paper": {
+ width: "456px",
+ maxWidth: "calc(100% - 32px)",
+ margin: "16px",
+ padding: "32px",
+ boxSizing: "border-box",
+ borderRadius: "24px",
+ backgroundColor: "#fff",
+ backgroundImage: "none",
+ boxShadow: "0 4px 16px rgba(0, 0, 0, 0.14)",
+ ...theme.applyStyles("dark", { backgroundColor: "#252525" }),
+ },
+ [authMobileMediaQuery]: {
+ "& .MuiDialog-container": { alignItems: "flex-end" },
+ "& .MuiDialog-paper": {
+ width: "100%",
+ maxWidth: "100%",
+ margin: 0,
+ padding: "12px 24px 28px",
+ borderRadius: "24px 24px 0 0",
+ },
+ },
+}));
+
+const SheetHandle = styled("div")({
+ display: "none",
+ [authMobileMediaQuery]: {
+ display: "block",
+ width: "36px",
+ height: "4px",
+ flexShrink: 0,
+ margin: "0 auto 20px",
+ borderRadius: "999px",
+ backgroundColor: "var(--locker-auth-fill-active)",
+ },
+});
diff --git a/web/apps/locker/src/components/auth/Button.tsx b/web/apps/locker/src/components/auth/Button.tsx
new file mode 100644
index 0000000000..0c92a896a9
--- /dev/null
+++ b/web/apps/locker/src/components/auth/Button.tsx
@@ -0,0 +1,144 @@
+import { CircularProgress, styled } from "@mui/material";
+import type React from "react";
+import {
+ authBodyTypography,
+ authFocusRing,
+ authTransientProps,
+} from "./styles";
+
+export type ButtonVariant = "primary" | "secondary";
+
+export interface ButtonProps extends Omit<
+ React.ButtonHTMLAttributes<HTMLButtonElement>,
+ "color" | "children"
+> {
+ variant?: ButtonVariant;
+ fullWidth?: boolean;
+ loading?: boolean;
+ loadingMessage?: React.ReactNode;
+ children: React.ReactNode;
+}
+
+export function Button({
+ variant = "primary",
+ fullWidth = false,
+ loading = false,
+ loadingMessage,
+ disabled,
+ type = "button",
+ children,
+ ...buttonProps
+}: ButtonProps): React.JSX.Element {
+ return (
+ <ButtonRoot
+ type={type}
+ disabled={disabled || loading}
+ aria-busy={loading || undefined}
+ $variant={variant}
+ $fullWidth={fullWidth}
+ $loading={loading}
+ {...buttonProps}
+ >
+ {loading && loadingMessage ? (
+ <LoadingContent>
+ <CircularProgress size={20} color="inherit" />
+ <span>{loadingMessage}</span>
+ </LoadingContent>
+ ) : (
+ <>
+ <ButtonLabel $loading={loading}>{children}</ButtonLabel>
+ {loading && <CircularProgress size={20} color="inherit" />}
+ </>
+ )}
+ </ButtonRoot>
+ );
+}
+
+interface ButtonRootProps {
+ $variant: ButtonVariant;
+ $fullWidth: boolean;
+ $loading: boolean;
+}
+
+const ButtonRoot = styled(
+ "button",
+ authTransientProps,
+)<ButtonRootProps>(({ $variant, $fullWidth, $loading }) => ({
+ ...authBodyTypography,
+ width: $fullWidth ? "100%" : "auto",
+ height: "52px",
+ padding: "14px 24px",
+ border: 0,
+ borderRadius: "20px",
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ position: "relative",
+ boxSizing: "border-box",
+ fontFamily: "inherit",
+ color: $variant === "primary" ? "#fff" : "var(--locker-auth-text)",
+ backgroundColor:
+ $variant === "primary"
+ ? "var(--locker-auth-primary)"
+ : "var(--locker-auth-button-secondary)",
+ boxShadow:
+ $variant === "primary"
+ ? "inset 0 0 0 1px var(--locker-auth-button-primary-stroke)"
+ : "inset 0 0 0 1px var(--locker-auth-button-secondary-stroke)",
+ cursor: $loading ? "default" : "pointer",
+ transition:
+ "background-color 160ms ease, box-shadow 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1)",
+ "&:hover:not(:disabled)": {
+ backgroundColor:
+ $variant === "primary"
+ ? "var(--locker-auth-primary-hover)"
+ : "var(--locker-auth-button-secondary-hover)",
+ boxShadow:
+ $variant === "primary"
+ ? "inset 0 0 0 1px var(--locker-auth-button-primary-stroke-hover)"
+ : "inset 0 0 0 1px var(--locker-auth-button-secondary-stroke-hover)",
+ transform: "translateY(-2px)",
+ },
+ "&:active:not(:disabled)": {
+ backgroundColor:
+ $variant === "primary"
+ ? "var(--locker-auth-primary-active)"
+ : "var(--locker-auth-button-secondary-active)",
+ boxShadow:
+ $variant === "primary"
+ ? "inset 0 0 0 1px var(--locker-auth-button-primary-stroke-active)"
+ : "inset 0 0 0 1px var(--locker-auth-button-secondary-stroke-active)",
+ transform: "translateY(0) scale(0.985)",
+ },
+ "&:focus-visible": authFocusRing,
+ "&:disabled": $loading
+ ? { cursor: "default" }
+ : {
+ color: "var(--locker-auth-text-disabled)",
+ backgroundColor: "var(--locker-auth-fill-hover)",
+ boxShadow: "none",
+ cursor: "not-allowed",
+ },
+ "& > .MuiCircularProgress-root": { position: "absolute" },
+ "@media (prefers-reduced-motion: reduce)": {
+ transition: "background-color 120ms ease",
+ "&:hover:not(:disabled), &:active:not(:disabled)": {
+ transform: "none",
+ },
+ },
+}));
+
+const ButtonLabel = styled(
+ "span",
+ authTransientProps,
+)<{ $loading: boolean }>(({ $loading }) => ({ opacity: $loading ? 0 : 1 }));
+
+const LoadingContent = styled("span")({
+ minWidth: 0,
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "8px",
+ whiteSpace: "nowrap",
+ "& > .MuiCircularProgress-root": { flexShrink: 0 },
+});
diff --git a/web/apps/locker/src/components/auth/Checkbox.tsx b/web/apps/locker/src/components/auth/Checkbox.tsx
new file mode 100644
index 0000000000..9eb340bb40
--- /dev/null
+++ b/web/apps/locker/src/components/auth/Checkbox.tsx
@@ -0,0 +1,105 @@
+import { Tick02Icon } from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
+import { styled } from "@mui/material";
+import type React from "react";
+import {
+ authBodyTypography,
+ authFocusRing,
+ authTransientProps,
+} from "./styles";
+
+export interface CheckboxProps extends Omit<
+ React.InputHTMLAttributes<HTMLInputElement>,
+ "checked" | "children" | "onChange" | "type"
+> {
+ checked: boolean;
+ onChange: (checked: boolean) => void;
+ label?: React.ReactNode;
+}
+
+export function Checkbox({
+ checked,
+ onChange,
+ disabled,
+ label,
+ ...inputProps
+}: CheckboxProps): React.JSX.Element {
+ function handleChange(event: React.ChangeEvent<HTMLInputElement>) {
+ onChange(event.target.checked);
+ }
+
+ return (
+ <CheckboxRoot $disabled={Boolean(disabled)}>
+ <CheckboxInput
+ type="checkbox"
+ checked={checked}
+ onChange={handleChange}
+ disabled={disabled}
+ {...inputProps}
+ />
+ <CheckboxMark aria-hidden="true">
+ {checked && (
+ <HugeiconsIcon
+ icon={Tick02Icon}
+ size={11}
+ strokeWidth={3}
+ />
+ )}
+ </CheckboxMark>
+ {label && <CheckboxLabelText>{label}</CheckboxLabelText>}
+ </CheckboxRoot>
+ );
+}
+
+const CheckboxRoot = styled(
+ "label",
+ authTransientProps,
+)<{ $disabled: boolean }>(({ $disabled }) => ({
+ display: "inline-flex",
+ alignItems: "flex-start",
+ gap: "8px",
+ position: "relative",
+ cursor: $disabled ? "not-allowed" : "pointer",
+}));
+
+const CheckboxInput = styled("input")({
+ width: "1px",
+ height: "1px",
+ margin: 0,
+ padding: 0,
+ position: "absolute",
+ overflow: "hidden",
+ clip: "rect(0 0 0 0)",
+ clipPath: "inset(50%)",
+ whiteSpace: "nowrap",
+});
+
+const CheckboxMark = styled("span")({
+ width: "16px",
+ height: "16px",
+ flex: "0 0 16px",
+ marginTop: "2px",
+ borderRadius: "4px",
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ boxSizing: "border-box",
+ color: "#fff",
+ backgroundColor: "var(--locker-auth-primary)",
+ "input:disabled + &": {
+ backgroundColor: "var(--locker-auth-text-disabled)",
+ },
+ "input:not(:checked) + &": {
+ backgroundColor: "transparent",
+ boxShadow: "inset 0 0 0 1px var(--locker-auth-text-faint)",
+ },
+ "input:not(:checked):disabled + &": {
+ boxShadow: "inset 0 0 0 1px var(--locker-auth-text-disabled)",
+ },
+ "input:focus-visible + &": authFocusRing,
+});
+
+const CheckboxLabelText = styled("span")({
+ ...authBodyTypography,
+ color: "var(--locker-auth-text)",
+});
diff --git a/web/apps/locker/src/components/auth/CredentialsForm.tsx b/web/apps/locker/src/components/auth/CredentialsForm.tsx
new file mode 100644
index 0000000000..b241e0307b
--- /dev/null
+++ b/web/apps/locker/src/components/auth/CredentialsForm.tsx
@@ -0,0 +1,113 @@
+import { styled } from "@mui/material";
+import type { VerifyMasterPasswordPresentationProps } from "ente-accounts/components/VerifyMasterPasswordForm";
+import type { CredentialsPresentationProps } from "ente-accounts/pages/credentials";
+import { t } from "i18next";
+import type React from "react";
+import { Trans } from "react-i18next";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextField } from "./TextField";
+import { TextLink } from "./TextLink";
+
+export function CredentialsForm({
+ userEmail,
+ host,
+ passwordForm,
+ onRecover,
+ onChangeEmail,
+}: CredentialsPresentationProps): React.JSX.Element {
+ return (
+ <>
+ <ScreenHeader
+ title={t("enter_password")}
+ subtitle={
+ <Trans
+ i18nKey="auth_signing_in_as"
+ components={{ a: <Email /> }}
+ values={{ email: userEmail }}
+ />
+ }
+ />
+ {passwordForm}
+ <FormFooter>
+ <FooterLinks>
+ <TextLink onClick={onRecover}>
+ {t("forgot_password")}
+ </TextLink>
+ <TextLink onClick={onChangeEmail}>
+ {t("change_email")}
+ </TextLink>
+ </FooterLinks>
+ <Host>{host ?? ""}</Host>
+ </FormFooter>
+ </>
+ );
+}
+
+export function PasswordForm({
+ userEmail,
+ password,
+ passwordError,
+ isSubmitting,
+ submitButtonTitle,
+ onPasswordChange,
+ onSubmit,
+}: VerifyMasterPasswordPresentationProps): React.JSX.Element {
+ return (
+ <Form onSubmit={onSubmit}>
+ <HiddenEmail
+ name="email"
+ type="email"
+ autoComplete="username"
+ value={userEmail}
+ readOnly
+ tabIndex={-1}
+ />
+ <FormFields>
+ <TextField
+ name="password"
+ value={password}
+ onChange={onPasswordChange}
+ type="password"
+ autoComplete="current-password"
+ label={t("password")}
+ showPasswordToggle
+ autoFocus
+ disabled={isSubmitting}
+ error={Boolean(passwordError)}
+ helperText={passwordError}
+ />
+ </FormFields>
+ <FormFooter>
+ <Button fullWidth type="submit" loading={isSubmitting}>
+ {submitButtonTitle}
+ </Button>
+ </FormFooter>
+ </Form>
+ );
+}
+
+const HiddenEmail = styled("input")({ display: "none" });
+
+const Email = styled("strong")({
+ color: "var(--locker-auth-text)",
+ wordBreak: "break-word",
+});
+
+const FooterLinks = styled("div")({
+ display: "flex",
+ justifyContent: "space-between",
+ gap: "16px",
+});
+
+const Host = styled("div")({
+ minHeight: "16px",
+ textAlign: "center",
+ fontSize: "12px",
+ fontWeight: 500,
+ lineHeight: "16px",
+ color: "var(--locker-auth-text-faint)",
+});
diff --git a/web/apps/locker/src/components/auth/Form.tsx b/web/apps/locker/src/components/auth/Form.tsx
new file mode 100644
index 0000000000..bf9395fefb
--- /dev/null
+++ b/web/apps/locker/src/components/auth/Form.tsx
@@ -0,0 +1,20 @@
+import { styled } from "@mui/material";
+import type React from "react";
+import { authMobileMediaQuery } from "./styles";
+
+export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
+ children: React.ReactNode;
+}
+
+export function Form({ children, ...formProps }: FormProps): React.JSX.Element {
+ return <FormRoot {...formProps}>{children}</FormRoot>;
+}
+
+const FormRoot = styled("form")({
+ width: "100%",
+ minHeight: "min-content",
+ display: "flex",
+ flexDirection: "column",
+ gap: "24px",
+ [authMobileMediaQuery]: { flex: 1 },
+});
diff --git a/web/apps/locker/src/components/auth/FormFields.tsx b/web/apps/locker/src/components/auth/FormFields.tsx
new file mode 100644
index 0000000000..46651d2b1a
--- /dev/null
+++ b/web/apps/locker/src/components/auth/FormFields.tsx
@@ -0,0 +1,16 @@
+import { styled } from "@mui/material";
+import type React from "react";
+
+export function FormFields({
+ children,
+}: React.PropsWithChildren): React.JSX.Element {
+ return <FormFieldsRoot>{children}</FormFieldsRoot>;
+}
+
+const FormFieldsRoot = styled("div")({
+ "--locker-auth-message-gap": "16px",
+ width: "100%",
+ display: "flex",
+ flexDirection: "column",
+ gap: "16px",
+});
diff --git a/web/apps/locker/src/components/auth/FormFooter.tsx b/web/apps/locker/src/components/auth/FormFooter.tsx
new file mode 100644
index 0000000000..f59919ed4d
--- /dev/null
+++ b/web/apps/locker/src/components/auth/FormFooter.tsx
@@ -0,0 +1,17 @@
+import { styled } from "@mui/material";
+import type React from "react";
+import { authMobileMediaQuery } from "./styles";
+
+export function FormFooter({
+ children,
+}: React.PropsWithChildren): React.JSX.Element {
+ return <FormFooterRoot>{children}</FormFooterRoot>;
+}
+
+const FormFooterRoot = styled("div")({
+ width: "100%",
+ display: "flex",
+ flexDirection: "column",
+ gap: "16px",
+ [authMobileMediaQuery]: { marginTop: "auto" },
+});
diff --git a/web/apps/locker/src/components/auth/LoginForm.tsx b/web/apps/locker/src/components/auth/LoginForm.tsx
new file mode 100644
index 0000000000..618d21a67c
--- /dev/null
+++ b/web/apps/locker/src/components/auth/LoginForm.tsx
@@ -0,0 +1,107 @@
+import { Input, styled } from "@mui/material";
+import type { LoginPresentationProps } from "ente-accounts/components/LoginContents";
+import { t } from "i18next";
+import type React from "react";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextField } from "./TextField";
+import { TextLink } from "./TextLink";
+
+export function LoginForm({
+ email,
+ emailError,
+ host,
+ isSubmitting,
+ isJoinAlbumContext,
+ isEnsu,
+ onEmailChange,
+ onSubmit,
+ onSignUp,
+ onCancel,
+}: LoginPresentationProps): React.JSX.Element {
+ return (
+ <>
+ <ScreenHeader
+ title={
+ isJoinAlbumContext
+ ? t("login_to_join_album")
+ : t("auth_welcome_back")
+ }
+ subtitle={t("auth_login_subtitle")}
+ />
+ <Form onSubmit={onSubmit}>
+ <FormFields>
+ <TextField
+ name="email"
+ value={email}
+ onChange={onEmailChange}
+ type="email"
+ autoComplete="username"
+ label={t("auth_email_label")}
+ placeholder={t("auth_email_placeholder")}
+ autoFocus
+ disabled={isSubmitting}
+ error={Boolean(emailError)}
+ helperText={emailError}
+ />
+ <Input
+ sx={{ display: "none" }}
+ type="password"
+ value=""
+ readOnly
+ />
+ </FormFields>
+ <FormFooter>
+ <Button fullWidth type="submit" loading={isSubmitting}>
+ {t("login")}
+ </Button>
+ <AccountActions>
+ {isEnsu ? (
+ <TextLink onClick={onCancel}>
+ {t("cancel")}
+ </TextLink>
+ ) : (
+ <AccountPrompt>
+ <span>{t("auth_new_account_prompt")}</span>
+ <TextLink regular onClick={onSignUp}>
+ {t("sign_up")}
+ </TextLink>
+ </AccountPrompt>
+ )}
+ <Host>{host ?? ""}</Host>
+ </AccountActions>
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const AccountActions = styled("div")({
+ display: "flex",
+ flexDirection: "column",
+ alignItems: "center",
+ gap: "10px",
+ textAlign: "center",
+});
+
+const AccountPrompt = styled("div")({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "6px",
+ fontSize: "14px",
+ fontWeight: 500,
+ lineHeight: "20px",
+ color: "var(--locker-auth-text-muted)",
+});
+
+const Host = styled("div")({
+ minHeight: "16px",
+ fontSize: "12px",
+ fontWeight: 500,
+ lineHeight: "16px",
+ color: "var(--locker-auth-text-faint)",
+});
diff --git a/web/apps/locker/src/components/auth/Message.tsx b/web/apps/locker/src/components/auth/Message.tsx
new file mode 100644
index 0000000000..1f3f192d9a
--- /dev/null
+++ b/web/apps/locker/src/components/auth/Message.tsx
@@ -0,0 +1,121 @@
+import {
+ Alert02Icon,
+ AlertCircleIcon,
+ InformationCircleIcon,
+ Tick02Icon,
+} from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
+import { styled } from "@mui/material";
+import type React from "react";
+import { useEffect, useRef } from "react";
+import { authMiniTypography, authTransientProps } from "./styles";
+
+export type MessageKind = "error" | "warning" | "success" | "info";
+
+export interface MessageProps {
+ children: React.ReactNode;
+ kind?: MessageKind;
+ note?: boolean;
+ visible?: boolean;
+ id?: string;
+}
+
+export function Message({
+ children,
+ kind = "info",
+ note = false,
+ visible,
+ id,
+}: MessageProps): React.JSX.Element {
+ const isVisible = visible ?? true;
+ const lastVisibleContent = useRef({ children, kind });
+ const displayedContent = isVisible
+ ? { children, kind }
+ : lastVisibleContent.current;
+
+ useEffect(() => {
+ if (isVisible) lastVisibleContent.current = { children, kind };
+ }, [children, isVisible, kind]);
+
+ return (
+ <MessageRoot
+ id={id}
+ role={displayedContent.kind === "error" ? "alert" : "status"}
+ aria-hidden={!isVisible || undefined}
+ $kind={displayedContent.kind}
+ $animated={visible !== undefined}
+ $visible={isVisible}
+ >
+ <MessageContent $note={note}>
+ <HugeiconsIcon
+ icon={messageIcons[displayedContent.kind]}
+ size={14}
+ strokeWidth={2}
+ aria-hidden="true"
+ />
+ <span>{displayedContent.children}</span>
+ </MessageContent>
+ </MessageRoot>
+ );
+}
+
+const messageIcons = {
+ error: AlertCircleIcon,
+ warning: Alert02Icon,
+ success: Tick02Icon,
+ info: InformationCircleIcon,
+} as const;
+
+const MessageRoot = styled(
+ "span",
+ authTransientProps,
+)<{ $kind: MessageKind; $animated: boolean; $visible: boolean }>(({
+ $kind,
+ $animated,
+ $visible,
+}) => {
+ const delay = $visible ? "40ms" : "0ms";
+
+ return {
+ ...authMiniTypography,
+ display: "inline-grid",
+ gridTemplateRows: $visible ? "1fr" : "0fr",
+ marginTop:
+ $animated && !$visible
+ ? "calc(-1 * var(--locker-auth-message-gap, 8px))"
+ : 0,
+ opacity: $visible ? 1 : 0,
+ transform: $visible ? "translateY(0)" : "translateY(-4px)",
+ visibility: $visible ? "visible" : "hidden",
+ color:
+ $kind === "error"
+ ? "var(--locker-auth-warning)"
+ : $kind === "warning"
+ ? "var(--locker-auth-caution)"
+ : $kind === "success"
+ ? "var(--locker-auth-success)"
+ : "var(--locker-auth-text-muted)",
+ ...($animated && {
+ overflow: "hidden",
+ transition: [
+ `grid-template-rows 360ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}`,
+ `margin-top 360ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}`,
+ `opacity 360ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}`,
+ `transform 360ms cubic-bezier(0.22, 1, 0.36, 1) ${delay}`,
+ `visibility 0s linear ${$visible ? "0ms" : "360ms"}`,
+ ].join(", "),
+ "@media (prefers-reduced-motion: reduce)": { transition: "none" },
+ }),
+ };
+});
+
+const MessageContent = styled(
+ "span",
+ authTransientProps,
+)<{ $note: boolean }>(({ $note }) => ({
+ minHeight: 0,
+ display: "inline-flex",
+ alignItems: $note ? "flex-start" : "center",
+ gap: $note ? "8px" : "4px",
+ "& > svg": { flexShrink: 0 },
+}));
diff --git a/web/apps/locker/src/components/auth/OTPField.tsx b/web/apps/locker/src/components/auth/OTPField.tsx
new file mode 100644
index 0000000000..20befc826b
--- /dev/null
+++ b/web/apps/locker/src/components/auth/OTPField.tsx
@@ -0,0 +1,265 @@
+import { styled } from "@mui/material";
+import { t } from "i18next";
+import type React from "react";
+import { useEffect, useRef } from "react";
+import {
+ authDisplayFontFamily,
+ authMiniTypography,
+ authTransientProps,
+} from "./styles";
+
+export interface OTPFieldProps {
+ id?: string;
+ name?: string;
+ label?: React.ReactNode;
+ value: string;
+ onChange: (value: string) => void;
+ length?: number;
+ error?: boolean;
+ disabled?: boolean;
+ autoFocus?: boolean;
+ ariaLabel?: string;
+ ariaDescribedBy?: string;
+}
+
+export function OTPField({
+ id,
+ name,
+ label,
+ value,
+ onChange,
+ length = 6,
+ error = false,
+ disabled = false,
+ autoFocus,
+ ariaLabel,
+ ariaDescribedBy,
+}: OTPFieldProps): React.JSX.Element {
+ const inputRefs = useRef<(HTMLInputElement | null)[]>([]);
+ const wasDisabled = useRef(disabled);
+ const hadError = useRef(error);
+
+ useEffect(() => {
+ if (autoFocus && value.length === 0) inputRefs.current[0]?.focus();
+ }, [autoFocus, value]);
+
+ function isInputValueValid(input: string) {
+ return !isNaN(Number(input)) && input.trim().length === 1;
+ }
+
+ function focusInput(index: number) {
+ const nextIndex = Math.max(Math.min(length - 1, index), 0);
+ const input = inputRefs.current[nextIndex];
+ if (input) {
+ input.focus();
+ input.select();
+ }
+ }
+
+ useEffect(() => {
+ const shouldRestoreFocus =
+ error && !disabled && (wasDisabled.current || !hadError.current);
+
+ wasDisabled.current = disabled;
+ hadError.current = error;
+
+ if (shouldRestoreFocus) {
+ const index = Math.max(
+ Math.min(value.trimEnd().length - 1, length - 1),
+ 0,
+ );
+ const input = inputRefs.current[index];
+ input?.focus();
+ input?.select();
+ }
+ }, [disabled, error, length, value]);
+
+ function updateDigit(index: number, digit: string) {
+ const otp = value.padEnd(length, " ").slice(0, length).split("");
+ otp[index] = digit || " ";
+ onChange(otp.join(""));
+ }
+
+ function handleChange(
+ index: number,
+ event: React.ChangeEvent<HTMLInputElement>,
+ ) {
+ const input = event.currentTarget.value;
+ if (isInputValueValid(input)) {
+ updateDigit(index, input);
+ focusInput(index + 1);
+ }
+ }
+
+ function handleInput(
+ index: number,
+ event: React.SyntheticEvent<HTMLInputElement, InputEvent>,
+ ) {
+ const nativeEvent = event.nativeEvent;
+ const input = event.currentTarget.value;
+ if (!isInputValueValid(input)) {
+ if (
+ input.length === length &&
+ !input.split("").some((digit) => !isInputValueValid(digit))
+ ) {
+ onChange(input);
+ focusInput(length - 1);
+ }
+
+ if (
+ nativeEvent.data === null &&
+ nativeEvent.inputType === "deleteContentBackward"
+ ) {
+ event.preventDefault();
+ updateDigit(index, "");
+ focusInput(index - 1);
+ }
+
+ event.currentTarget.value = "";
+ }
+ }
+
+ function handleKeyDown(
+ index: number,
+ event: React.KeyboardEvent<HTMLInputElement>,
+ ) {
+ const otp = value.padEnd(length, " ").slice(0, length).split("");
+ if ([event.code, event.key].includes("Backspace")) {
+ event.preventDefault();
+ updateDigit(index, "");
+ focusInput(index - 1);
+ } else if (event.code === "Delete") {
+ event.preventDefault();
+ updateDigit(index, "");
+ } else if (event.code === "ArrowLeft") {
+ event.preventDefault();
+ focusInput(index - 1);
+ } else if (event.code === "ArrowRight") {
+ event.preventDefault();
+ focusInput(index + 1);
+ } else if (event.code === "Spacebar" || event.code === "Space") {
+ event.preventDefault();
+ } else if (event.key === otp[index]) {
+ event.preventDefault();
+ focusInput(index + 1);
+ } else if (event.code === "ArrowUp" || event.code === "ArrowDown") {
+ event.preventDefault();
+ }
+ }
+
+ function handlePaste(
+ index: number,
+ event: React.ClipboardEvent<HTMLInputElement>,
+ ) {
+ event.preventDefault();
+ const otp = value.padEnd(length, " ").slice(0, length).split("");
+ const pastedData = event.clipboardData
+ .getData("text/plain")
+ .slice(0, length - index)
+ .split("");
+
+ if (pastedData.some((digit) => !isInputValueValid(digit))) return;
+
+ pastedData.forEach((digit, offset) => {
+ otp[index + offset] = digit;
+ });
+
+ focusInput(index + pastedData.length);
+ onChange(otp.join(""));
+ }
+
+ const inputAriaLabel = ariaLabel ?? t("verification_code");
+
+ return (
+ <OTPFieldRoot>
+ {label && <OTPLabel>{label}</OTPLabel>}
+ <OTPRoot $disabled={disabled}>
+ {Array.from({ length }, (_, index) => (
+ <OTPInput
+ key={index}
+ ref={(element) => {
+ inputRefs.current[index] = element;
+ }}
+ id={index === 0 ? id : undefined}
+ name={index === 0 ? name : undefined}
+ type="tel"
+ value={value[index]?.trim() ?? ""}
+ onChange={(event) => handleChange(index, event)}
+ onFocus={(event) => event.currentTarget.select()}
+ onInput={(event) => handleInput(index, event)}
+ onKeyDown={(event) => handleKeyDown(index, event)}
+ onPaste={(event) => handlePaste(index, event)}
+ disabled={disabled}
+ autoFocus={autoFocus && index === 0}
+ inputMode="numeric"
+ pattern="[0-9]*"
+ autoComplete={index === 0 ? "one-time-code" : "off"}
+ aria-label={`${inputAriaLabel} ${index + 1}`}
+ aria-describedby={ariaDescribedBy}
+ aria-invalid={error || undefined}
+ $error={error}
+ />
+ ))}
+ </OTPRoot>
+ </OTPFieldRoot>
+ );
+}
+
+const OTPFieldRoot = styled("div")({
+ width: "100%",
+ display: "flex",
+ flexDirection: "column",
+ gap: "16px",
+ "&:focus-within > span": { color: "var(--locker-auth-text)" },
+});
+
+const OTPLabel = styled("span")({
+ ...authMiniTypography,
+ color: "var(--locker-auth-text-muted)",
+ transition: "color 100ms ease-in",
+ "@media (prefers-reduced-motion: reduce)": { transition: "none" },
+});
+
+const OTPRoot = styled(
+ "div",
+ authTransientProps,
+)<{ $disabled: boolean }>(({ $disabled }) => ({
+ width: "100%",
+ display: "flex",
+ gap: "8px",
+ position: "relative",
+ containerType: "inline-size",
+ cursor: $disabled ? "not-allowed" : "text",
+}));
+
+const OTPInput = styled(
+ "input",
+ authTransientProps,
+)<{ $error: boolean }>(({ $error }) => ({
+ aspectRatio: "44 / 52",
+ minWidth: 0,
+ flex: "1 1 0",
+ padding: 0,
+ border: 0,
+ borderRadius: "16px",
+ boxSizing: "border-box",
+ fontFamily: authDisplayFontFamily,
+ fontSize: "clamp(20px, 6.6cqi, 30px)",
+ fontWeight: 600,
+ lineHeight: 1,
+ textAlign: "center",
+ color: "var(--locker-auth-text)",
+ backgroundColor: "var(--locker-auth-field)",
+ boxShadow: `inset 0 0 0 1px ${
+ $error ? "var(--locker-auth-warning)" : "var(--locker-auth-stroke)"
+ }`,
+ outline: 0,
+ cursor: "text",
+ transition: "box-shadow 0.2s ease",
+ "&:focus": {
+ boxShadow: `inset 0 0 0 1px ${
+ $error ? "var(--locker-auth-warning)" : "var(--locker-auth-primary)"
+ }`,
+ },
+ "&:disabled": { cursor: "not-allowed" },
+}));
diff --git a/web/apps/locker/src/components/auth/PasswordStrengthMessage.tsx b/web/apps/locker/src/components/auth/PasswordStrengthMessage.tsx
new file mode 100644
index 0000000000..c4eb537f5e
--- /dev/null
+++ b/web/apps/locker/src/components/auth/PasswordStrengthMessage.tsx
@@ -0,0 +1,29 @@
+import type { PasswordStrength } from "ente-accounts/utils/password";
+import { t } from "i18next";
+import type React from "react";
+import { Message, type MessageKind } from "./Message";
+
+interface PasswordStrengthMessageProps {
+ strength?: PasswordStrength;
+ visible: boolean;
+}
+
+export function PasswordStrengthMessage({
+ strength,
+ visible,
+}: PasswordStrengthMessageProps): React.JSX.Element {
+ const displayedStrength = strength ?? "weak";
+
+ const kind: MessageKind =
+ displayedStrength === "weak"
+ ? "error"
+ : displayedStrength === "moderate"
+ ? "warning"
+ : "success";
+
+ return (
+ <Message kind={kind} visible={visible}>
+ {t("password_strength", { context: displayedStrength })}
+ </Message>
+ );
+}
diff --git a/web/apps/locker/src/components/auth/RecoveryForm.tsx b/web/apps/locker/src/components/auth/RecoveryForm.tsx
new file mode 100644
index 0000000000..a28b6526ae
--- /dev/null
+++ b/web/apps/locker/src/components/auth/RecoveryForm.tsx
@@ -0,0 +1,177 @@
+import { styled } from "@mui/material";
+import type { RecoverAccountPresentationProps } from "ente-accounts/pages/recover";
+import type { TwoFactorRecoverPresentationProps } from "ente-accounts/pages/two-factor/recover";
+import log from "ente-base/log";
+import { useFormik } from "formik";
+import { t } from "i18next";
+import React, { useState } from "react";
+import {
+ AuthDialog,
+ AuthDialogHeader,
+ AuthDialogText,
+ AuthDialogTitle,
+} from "./AuthDialog";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { ScreenHeader } from "./ScreenHeader";
+import { authDialogContentLayout } from "./styles";
+import { TextField } from "./TextField";
+import { TextLink } from "./TextLink";
+
+export function RecoverAccountForm(
+ props: RecoverAccountPresentationProps,
+): React.JSX.Element {
+ const [showNoRecoveryKey, setShowNoRecoveryKey] = useState(false);
+
+ return (
+ <>
+ <RecoveryForm
+ {...props}
+ onNoRecoveryKey={() => setShowNoRecoveryKey(true)}
+ title={t("recover_account")}
+ subtitle={t("auth_recover_account_subtitle")}
+ />
+ <AuthDialog
+ open={showNoRecoveryKey}
+ onClose={() => setShowNoRecoveryKey(false)}
+ ariaLabelledby="no-recovery-key-title"
+ >
+ <DialogContent>
+ <AuthDialogHeader>
+ <AuthDialogTitle id="no-recovery-key-title">
+ {t("sorry")}
+ </AuthDialogTitle>
+ <AuthDialogText>
+ {t("no_recovery_key_message")}
+ </AuthDialogText>
+ </AuthDialogHeader>
+ <Button
+ variant="secondary"
+ fullWidth
+ autoFocus
+ onClick={() => setShowNoRecoveryKey(false)}
+ >
+ {t("ok")}
+ </Button>
+ </DialogContent>
+ </AuthDialog>
+ </>
+ );
+}
+
+const DialogContent = styled("div")(authDialogContentLayout);
+
+export function RecoverTwoFactorForm(
+ props: TwoFactorRecoverPresentationProps,
+): React.JSX.Element {
+ return (
+ <RecoveryForm
+ {...props}
+ title={t("recover_two_factor")}
+ subtitle={t("auth_recover_two_factor_subtitle")}
+ />
+ );
+}
+
+interface RecoveryFormProps extends RecoverAccountPresentationProps {
+ title: React.ReactNode;
+ subtitle: React.ReactNode;
+}
+
+function RecoveryForm({
+ title,
+ subtitle,
+ onSubmit,
+ onNoRecoveryKey,
+ onBack,
+}: RecoveryFormProps): React.JSX.Element {
+ const formik = useFormik({
+ initialValues: { recoveryKey: "" },
+ onSubmit: async ({ recoveryKey }, { setFieldError }) => {
+ function setRecoveryKeyError(message: string) {
+ setFieldError("recoveryKey", message);
+ }
+
+ if (!recoveryKey) {
+ setRecoveryKeyError(t("required"));
+ return;
+ }
+
+ try {
+ await onSubmit(recoveryKey, setRecoveryKeyError);
+ } catch (error) {
+ log.error("Failed to submit recovery key", error);
+ setRecoveryKeyError(t("generic_error"));
+ }
+ },
+ });
+
+ function handleRecoveryKeyDown(
+ event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>,
+ ) {
+ if (
+ event.key === "Enter" &&
+ !event.shiftKey &&
+ !event.nativeEvent.isComposing
+ ) {
+ event.preventDefault();
+ void formik.submitForm();
+ }
+ }
+
+ return (
+ <>
+ <ScreenHeader title={title} subtitle={subtitle} />
+ <Form onSubmit={formik.handleSubmit}>
+ <FormFields>
+ <TextField
+ name="recoveryKey"
+ label={t("recovery_key")}
+ placeholder={t("auth_recovery_key_placeholder")}
+ value={formik.values.recoveryKey}
+ onChange={formik.handleChange}
+ onKeyDown={handleRecoveryKeyDown}
+ autoComplete="off"
+ multiline
+ rows={5}
+ autoFocus
+ disabled={formik.isSubmitting}
+ error={Boolean(formik.errors.recoveryKey)}
+ helperText={formik.errors.recoveryKey}
+ />
+ </FormFields>
+ <FormFooter>
+ <Button
+ fullWidth
+ type="submit"
+ loading={formik.isSubmitting}
+ >
+ {t("recover")}
+ </Button>
+ <FooterLinks>
+ <TextLink
+ onClick={onNoRecoveryKey}
+ disabled={formik.isSubmitting}
+ >
+ {t("no_recovery_key_title")}
+ </TextLink>
+ <TextLink
+ onClick={onBack}
+ disabled={formik.isSubmitting}
+ >
+ {t("go_back")}
+ </TextLink>
+ </FooterLinks>
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const FooterLinks = styled("div")({
+ display: "flex",
+ justifyContent: "space-between",
+ gap: "16px",
+});
diff --git a/web/apps/locker/src/components/auth/RecoveryKeyForm.tsx b/web/apps/locker/src/components/auth/RecoveryKeyForm.tsx
new file mode 100644
index 0000000000..2ac1337f82
--- /dev/null
+++ b/web/apps/locker/src/components/auth/RecoveryKeyForm.tsx
@@ -0,0 +1,107 @@
+import ContentCopyIcon from "@mui/icons-material/ContentCopy";
+import DoneIcon from "@mui/icons-material/Done";
+import { CircularProgress, styled } from "@mui/material";
+import type { RecoveryKeyPresentationProps } from "ente-accounts/components/RecoveryKey";
+import { useClipboardCopy } from "ente-base/components/utils/hooks";
+import { t } from "i18next";
+import type React from "react";
+import { Button } from "./Button";
+import { FormFooter } from "./FormFooter";
+import { Message } from "./Message";
+import { ScreenHeader } from "./ScreenHeader";
+import { authFocusRing } from "./styles";
+
+export function RecoveryKeyForm({
+ recoveryKey,
+ onClose,
+ onSave,
+}: RecoveryKeyPresentationProps): React.JSX.Element {
+ const [copied, handleCopy] = useClipboardCopy(recoveryKey ?? "");
+ const CopyIcon = copied ? DoneIcon : ContentCopyIcon;
+
+ return (
+ <>
+ <ScreenHeader
+ title={t("auth_recovery_key_title")}
+ subtitle={t("recovery_key_description")}
+ />
+ <RecoveryKeyBox>
+ {recoveryKey ? (
+ <>
+ <RecoveryKeyText>{recoveryKey}</RecoveryKeyText>
+ <CopyButton
+ type="button"
+ onClick={handleCopy}
+ aria-label={
+ copied
+ ? t("copied")
+ : t("auth_copy_recovery_key")
+ }
+ >
+ <CopyIcon fontSize="small" />
+ </CopyButton>
+ </>
+ ) : (
+ <CircularProgress
+ size={24}
+ sx={{ color: "var(--locker-auth-primary)" }}
+ />
+ )}
+ </RecoveryKeyBox>
+ <Message note>{t("key_not_stored_note")}</Message>
+ <FormFooter>
+ <Actions>
+ <Button fullWidth variant="secondary" onClick={onClose}>
+ {t("do_this_later")}
+ </Button>
+ <Button fullWidth onClick={onSave} disabled={!recoveryKey}>
+ {t("save_key")}
+ </Button>
+ </Actions>
+ </FormFooter>
+ </>
+ );
+}
+
+const RecoveryKeyBox = styled("div")({
+ minHeight: "128px",
+ padding: "20px",
+ borderRadius: "16px",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ position: "relative",
+ boxSizing: "border-box",
+ backgroundColor: "var(--locker-auth-field)",
+ boxShadow: "inset 0 0 0 1px var(--locker-auth-stroke)",
+});
+
+const RecoveryKeyText = styled("p")({
+ margin: 0,
+ paddingRight: "28px",
+ fontSize: "15px",
+ fontWeight: 500,
+ lineHeight: "24px",
+ wordBreak: "break-word",
+ color: "var(--locker-auth-text)",
+});
+
+const CopyButton = styled("button")({
+ width: "32px",
+ height: "32px",
+ padding: 0,
+ border: 0,
+ borderRadius: "8px",
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ position: "absolute",
+ top: "12px",
+ right: "12px",
+ backgroundColor: "transparent",
+ color: "var(--locker-auth-text-muted)",
+ cursor: "pointer",
+ "&:focus-visible": authFocusRing,
+});
+
+const Actions = styled("div")({ display: "flex", gap: "12px" });
diff --git a/web/apps/locker/src/components/auth/ScreenHeader.tsx b/web/apps/locker/src/components/auth/ScreenHeader.tsx
new file mode 100644
index 0000000000..a827b86203
--- /dev/null
+++ b/web/apps/locker/src/components/auth/ScreenHeader.tsx
@@ -0,0 +1,48 @@
+import { styled } from "@mui/material";
+import type React from "react";
+import { authDisplayFontFamily, authMobileMediaQuery } from "./styles";
+
+export interface ScreenHeaderProps {
+ title: React.ReactNode;
+ subtitle?: React.ReactNode;
+}
+
+export function ScreenHeader({
+ title,
+ subtitle,
+}: ScreenHeaderProps): React.JSX.Element {
+ return (
+ <ScreenHeaderRoot>
+ <ScreenTitle>{title}</ScreenTitle>
+ {subtitle && <ScreenSubtitle>{subtitle}</ScreenSubtitle>}
+ </ScreenHeaderRoot>
+ );
+}
+
+const ScreenHeaderRoot = styled("div")({
+ display: "flex",
+ flexDirection: "column",
+ gap: "8px",
+});
+
+const ScreenTitle = styled("h1")({
+ margin: 0,
+ fontFamily: authDisplayFontFamily,
+ fontSize: "30px",
+ fontWeight: 600,
+ lineHeight: "38px",
+ textWrap: "pretty",
+ color: "var(--locker-auth-text)",
+ [authMobileMediaQuery]: { fontSize: "26px", lineHeight: "34px" },
+ "@media (min-width: 1600px)": { fontSize: "32px", lineHeight: "40px" },
+});
+
+const ScreenSubtitle = styled("p")({
+ margin: 0,
+ fontSize: "16px",
+ fontWeight: 500,
+ lineHeight: "24px",
+ textWrap: "pretty",
+ color: "var(--locker-auth-text-muted)",
+ [authMobileMediaQuery]: { fontSize: "13px", lineHeight: "20px" },
+});
diff --git a/web/apps/locker/src/components/auth/SetPasswordForm.tsx b/web/apps/locker/src/components/auth/SetPasswordForm.tsx
new file mode 100644
index 0000000000..46db1cd97d
--- /dev/null
+++ b/web/apps/locker/src/components/auth/SetPasswordForm.tsx
@@ -0,0 +1,119 @@
+import { styled } from "@mui/material";
+import type { NewPasswordPresentationProps } from "ente-accounts/components/NewPasswordForm";
+import { t } from "i18next";
+import type React from "react";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { Message } from "./Message";
+import { PasswordStrengthMessage } from "./PasswordStrengthMessage";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextField } from "./TextField";
+import { TextLink } from "./TextLink";
+
+export function SetPasswordForm({
+ userEmail,
+ password,
+ confirmPassword,
+ passwordError,
+ confirmPasswordError,
+ passwordStrength,
+ isSubmitting,
+ isSubmitDisabled,
+ submitButtonTitle,
+ onBack,
+ onPasswordChange,
+ onConfirmPasswordChange,
+ onSubmit,
+}: NewPasswordPresentationProps): React.JSX.Element {
+ return (
+ <>
+ <ScreenHeader
+ title={submitButtonTitle}
+ subtitle={t("locker_auth_password_recovery_warning")}
+ />
+ <Form onSubmit={onSubmit}>
+ <HiddenEmail
+ name="email"
+ type="email"
+ autoComplete="username"
+ value={userEmail}
+ readOnly
+ tabIndex={-1}
+ />
+ <FormFields>
+ <PasswordField>
+ <TextField
+ name="password"
+ label={t("password")}
+ placeholder={t("auth_strong_password_placeholder")}
+ autoComplete="new-password"
+ showPasswordToggle
+ value={password}
+ onChange={onPasswordChange}
+ error={Boolean(passwordError)}
+ helperText={passwordError}
+ disabled={isSubmitting}
+ autoFocus
+ />
+ <PasswordStrengthMessage
+ strength={passwordStrength}
+ visible={Boolean(password)}
+ />
+ </PasswordField>
+ <TextField
+ name="confirmPassword"
+ label={t("confirm_password")}
+ placeholder={t("auth_repeat_password_placeholder")}
+ autoComplete="new-password"
+ showPasswordToggle
+ value={confirmPassword}
+ onChange={onConfirmPasswordChange}
+ error={Boolean(confirmPasswordError)}
+ helperText={confirmPasswordError}
+ disabled={isSubmitting}
+ />
+ </FormFields>
+ <FormFooter>
+ <Button
+ fullWidth
+ type="submit"
+ loading={isSubmitting}
+ disabled={isSubmitDisabled}
+ >
+ {submitButtonTitle}
+ </Button>
+ {isSubmitting ? (
+ <SubmittingMessage>
+ <Message>{t("key_generation_in_progress")}</Message>
+ </SubmittingMessage>
+ ) : null}
+ {onBack ? (
+ <BackAction>
+ <TextLink onClick={onBack} disabled={isSubmitting}>
+ {t("go_back")}
+ </TextLink>
+ </BackAction>
+ ) : null}
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const HiddenEmail = styled("input")({ display: "none" });
+
+const PasswordField = styled("div")({
+ "--locker-auth-message-gap": "8px",
+ display: "flex",
+ flexDirection: "column",
+ gap: "8px",
+});
+
+const SubmittingMessage = styled("div")({
+ display: "flex",
+ justifyContent: "center",
+});
+
+const BackAction = styled("div")({ display: "flex", justifyContent: "center" });
diff --git a/web/apps/locker/src/components/auth/SignUpForm.tsx b/web/apps/locker/src/components/auth/SignUpForm.tsx
new file mode 100644
index 0000000000..30b281412d
--- /dev/null
+++ b/web/apps/locker/src/components/auth/SignUpForm.tsx
@@ -0,0 +1,215 @@
+import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
+import { styled, Tooltip } from "@mui/material";
+import type { SignUpPresentationProps } from "ente-accounts/components/SignUpContents";
+import { t } from "i18next";
+import type React from "react";
+import { Trans } from "react-i18next";
+import { Button } from "./Button";
+import { Checkbox } from "./Checkbox";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { PasswordStrengthMessage } from "./PasswordStrengthMessage";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextField } from "./TextField";
+import { TextLink } from "./TextLink";
+
+export function SignUpForm({
+ email,
+ password,
+ confirmPassword,
+ referral,
+ acceptedTerms,
+ emailError,
+ passwordError,
+ confirmPasswordError,
+ passwordStrength,
+ isSubmitting,
+ isSubmitDisabled,
+ isJoinAlbumContext,
+ host,
+ onEmailChange,
+ onPasswordChange,
+ onConfirmPasswordChange,
+ onReferralChange,
+ onAcceptedTermsChange,
+ onSubmit,
+ onLogin,
+}: SignUpPresentationProps): React.JSX.Element {
+ return (
+ <>
+ <ScreenHeader
+ title={
+ isJoinAlbumContext
+ ? t("signup_to_join_album")
+ : t("auth_create_account")
+ }
+ subtitle={t("auth_signup_subtitle")}
+ />
+ <Form onSubmit={onSubmit}>
+ <FormFields>
+ <TextField
+ name="email"
+ label={t("auth_email_label")}
+ placeholder={t("auth_email_placeholder")}
+ type="email"
+ autoComplete="username"
+ value={email}
+ onChange={onEmailChange}
+ autoFocus
+ error={Boolean(emailError)}
+ helperText={emailError}
+ disabled={isSubmitting}
+ />
+ <PasswordField>
+ <TextField
+ name="password"
+ label={t("password")}
+ placeholder={t("auth_password_placeholder")}
+ autoComplete="new-password"
+ showPasswordToggle
+ value={password}
+ onChange={onPasswordChange}
+ error={Boolean(passwordError)}
+ helperText={passwordError}
+ disabled={isSubmitting}
+ />
+ <PasswordStrengthMessage
+ strength={passwordStrength}
+ visible={Boolean(passwordStrength)}
+ />
+ </PasswordField>
+ <TextField
+ name="confirmPassword"
+ label={t("confirm_password")}
+ placeholder={t("auth_confirm_password_placeholder")}
+ autoComplete="new-password"
+ showPasswordToggle
+ value={confirmPassword}
+ onChange={onConfirmPasswordChange}
+ error={Boolean(confirmPasswordError)}
+ helperText={confirmPasswordError}
+ disabled={isSubmitting}
+ />
+ <TextField
+ name="referral"
+ label={
+ <ReferralLabel>
+ {t("referral_source_hint")}
+ <Tooltip title={t("referral_source_info")}>
+ <InfoOutlinedIcon
+ fontSize="inherit"
+ tabIndex={0}
+ aria-label={t("referral_source_info")}
+ />
+ </Tooltip>
+ </ReferralLabel>
+ }
+ placeholder={t("auth_optional")}
+ value={referral}
+ onChange={onReferralChange}
+ disabled={isSubmitting}
+ />
+ </FormFields>
+ <Checkbox
+ name="acceptedTerms"
+ checked={acceptedTerms}
+ onChange={onAcceptedTermsChange}
+ disabled={isSubmitting}
+ label={
+ <TermsText>
+ <Trans
+ i18nKey="terms_and_conditions"
+ components={{
+ a: (
+ <TermsLink
+ href="https://ente.com/terms"
+ target="_blank"
+ />
+ ),
+ b: (
+ <TermsLink
+ href="https://ente.com/privacy"
+ target="_blank"
+ />
+ ),
+ }}
+ />
+ </TermsText>
+ }
+ />
+ <FormFooter>
+ <Button
+ fullWidth
+ type="submit"
+ loading={isSubmitting}
+ loadingMessage={t("key_generation_in_progress")}
+ disabled={isSubmitDisabled}
+ >
+ {t("create_account")}
+ </Button>
+ <AccountPrompt>
+ <span>{t("auth_existing_account_prompt")}</span>
+ <TextLink regular onClick={onLogin}>
+ {t("login")}
+ </TextLink>
+ </AccountPrompt>
+ {host ? <Host>{host}</Host> : null}
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const PasswordField = styled("div")({
+ "--locker-auth-message-gap": "8px",
+ display: "flex",
+ flexDirection: "column",
+ gap: "8px",
+});
+
+const ReferralLabel = styled("span")({
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "4px",
+ "& > svg": { fontSize: "14px" },
+});
+
+const TermsText = styled("span")({
+ fontSize: "14px",
+ fontWeight: 500,
+ lineHeight: "20px",
+ color: "var(--locker-auth-text)",
+});
+
+const TermsLink = styled("a")({
+ color: "var(--locker-auth-primary)",
+ textDecoration: "none",
+ "&:hover": { textDecoration: "underline" },
+ "&:focus-visible": {
+ borderRadius: "4px",
+ outline: "2px solid var(--locker-auth-primary)",
+ outlineOffset: "2px",
+ },
+});
+
+const AccountPrompt = styled("div")({
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ gap: "6px",
+ fontSize: "14px",
+ fontWeight: 500,
+ lineHeight: "20px",
+ textAlign: "center",
+ color: "var(--locker-auth-text-muted)",
+});
+
+const Host = styled("div")({
+ minHeight: "16px",
+ fontSize: "12px",
+ fontWeight: 500,
+ lineHeight: "16px",
+ textAlign: "center",
+ color: "var(--locker-auth-text-faint)",
+});
diff --git a/web/apps/locker/src/components/auth/TextField.tsx b/web/apps/locker/src/components/auth/TextField.tsx
new file mode 100644
index 0000000000..ee19f9d548
--- /dev/null
+++ b/web/apps/locker/src/components/auth/TextField.tsx
@@ -0,0 +1,282 @@
+import { ViewIcon, ViewOffSlashIcon } from "@hugeicons/core-free-icons";
+import { HugeiconsIcon } from "@hugeicons/react";
+import { styled } from "@mui/material";
+import { t } from "i18next";
+import type React from "react";
+import { useId, useState } from "react";
+import { Message } from "./Message";
+import {
+ authBodyTypography,
+ authFocusRing,
+ authMiniTypography,
+ authTransientProps,
+} from "./styles";
+
+export interface TextFieldProps {
+ id?: string;
+ label?: React.ReactNode;
+ value: string;
+ onChange: (
+ event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>,
+ ) => void;
+ onKeyDown?: (
+ event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>,
+ ) => void;
+ onBlur?: (
+ event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>,
+ ) => void;
+ type?: React.HTMLInputTypeAttribute;
+ placeholder?: string;
+ required?: boolean;
+ disabled?: boolean;
+ error?: boolean;
+ helperText?: React.ReactNode;
+ autoFocus?: boolean;
+ autoComplete?: string;
+ name?: string;
+ showPasswordToggle?: boolean;
+ multiline?: boolean;
+ rows?: number;
+ inputMode?: React.HTMLAttributes<HTMLInputElement>["inputMode"];
+ ariaLabel?: string;
+ trailing?: React.ReactNode;
+}
+
+export function TextField({
+ id,
+ label,
+ value,
+ onChange,
+ onKeyDown,
+ onBlur,
+ type = "text",
+ placeholder,
+ required,
+ disabled,
+ error,
+ helperText,
+ autoFocus,
+ autoComplete,
+ name,
+ showPasswordToggle,
+ multiline,
+ rows = 5,
+ inputMode,
+ ariaLabel,
+ trailing,
+}: TextFieldProps): React.JSX.Element {
+ const generatedID = useId();
+ const inputID = id ?? generatedID;
+ const helperID = `${inputID}-helper`;
+ const hasHelper = Boolean(helperText);
+ const [isPasswordVisible, setIsPasswordVisible] = useState(false);
+ const inputType = showPasswordToggle
+ ? isPasswordVisible
+ ? "text"
+ : "password"
+ : type;
+
+ function handleInputChange(event: React.ChangeEvent<HTMLInputElement>) {
+ onChange(event);
+ }
+
+ function handleTextAreaChange(
+ event: React.ChangeEvent<HTMLTextAreaElement>,
+ ) {
+ onChange(event);
+ }
+
+ function handlePasswordToggle() {
+ setIsPasswordVisible((isVisible) => !isVisible);
+ }
+
+ function handlePasswordToggleMouseDown(
+ event: React.MouseEvent<HTMLButtonElement>,
+ ) {
+ event.preventDefault();
+ }
+
+ const sharedControlProps = {
+ id: inputID,
+ value,
+ placeholder,
+ required,
+ disabled,
+ autoFocus,
+ autoComplete,
+ name,
+ onBlur,
+ "aria-label": ariaLabel,
+ "aria-invalid": error || undefined,
+ "aria-describedby": hasHelper ? helperID : undefined,
+ };
+
+ return (
+ <FieldRoot>
+ {label && (
+ <FieldLabel htmlFor={inputID}>
+ {label}
+ {required && (
+ <RequiredMark aria-hidden="true"> *</RequiredMark>
+ )}
+ </FieldLabel>
+ )}
+ <FieldBox
+ $error={Boolean(error)}
+ $disabled={Boolean(disabled)}
+ $multiline={Boolean(multiline)}
+ >
+ {multiline ? (
+ <TextAreaControl
+ {...sharedControlProps}
+ rows={rows}
+ onChange={handleTextAreaChange}
+ onKeyDown={onKeyDown}
+ />
+ ) : (
+ <TextInputControl
+ {...sharedControlProps}
+ type={inputType}
+ inputMode={inputMode}
+ onChange={handleInputChange}
+ onKeyDown={onKeyDown}
+ />
+ )}
+ {showPasswordToggle && !multiline && (
+ <PasswordToggle
+ type="button"
+ tabIndex={-1}
+ aria-label={t("show_or_hide_password")}
+ aria-controls={inputID}
+ aria-pressed={isPasswordVisible}
+ disabled={disabled}
+ onClick={handlePasswordToggle}
+ onMouseDown={handlePasswordToggleMouseDown}
+ >
+ <HugeiconsIcon
+ icon={
+ isPasswordVisible ? ViewOffSlashIcon : ViewIcon
+ }
+ size={20}
+ strokeWidth={2}
+ aria-hidden="true"
+ />
+ </PasswordToggle>
+ )}
+ {trailing}
+ </FieldBox>
+ <Message
+ id={helperID}
+ kind={error ? "error" : "info"}
+ visible={hasHelper}
+ >
+ {helperText}
+ </Message>
+ </FieldRoot>
+ );
+}
+
+const FieldRoot = styled("div")({
+ "--locker-auth-message-gap": "9px",
+ width: "100%",
+ display: "flex",
+ flexDirection: "column",
+ gap: "9px",
+ "&:focus-within > label": { color: "var(--locker-auth-text)" },
+});
+
+const FieldLabel = styled("label")({
+ ...authMiniTypography,
+ color: "var(--locker-auth-text-muted)",
+ transition: "color 100ms ease-in",
+ "@media (prefers-reduced-motion: reduce)": { transition: "none" },
+});
+
+const RequiredMark = styled("span")({ color: "var(--locker-auth-warning)" });
+
+interface FieldBoxProps {
+ $error: boolean;
+ $disabled: boolean;
+ $multiline: boolean;
+}
+
+const FieldBox = styled(
+ "div",
+ authTransientProps,
+)<FieldBoxProps>(({ $error, $disabled, $multiline }) => ({
+ width: "100%",
+ height: $multiline ? "auto" : "52px",
+ minHeight: $multiline ? "112px" : undefined,
+ padding: $multiline ? "16px" : "0 16px",
+ borderRadius: "16px",
+ display: "flex",
+ alignItems: $multiline ? "flex-start" : "center",
+ gap: "8px",
+ boxSizing: "border-box",
+ backgroundColor: $disabled
+ ? "var(--locker-auth-fill-hover)"
+ : "var(--locker-auth-field)",
+ boxShadow: $disabled
+ ? "none"
+ : `inset 0 0 0 1px ${
+ $error
+ ? "var(--locker-auth-warning)"
+ : "var(--locker-auth-stroke)"
+ }`,
+ "&:focus-within": $disabled
+ ? undefined
+ : {
+ boxShadow: `inset 0 0 0 1px ${
+ $error
+ ? "var(--locker-auth-warning)"
+ : "var(--locker-auth-primary)"
+ }`,
+ },
+}));
+
+const controlStyles = {
+ ...authBodyTypography,
+ width: "100%",
+ minWidth: 0,
+ flex: 1,
+ padding: 0,
+ border: 0,
+ outline: 0,
+ background: "transparent",
+ fontFamily: "inherit",
+ color: "var(--locker-auth-text)",
+ "&::placeholder": { color: "var(--locker-auth-text-faint)", opacity: 1 },
+ "&:disabled": {
+ color: "var(--locker-auth-text-disabled)",
+ WebkitTextFillColor: "var(--locker-auth-text-disabled)",
+ cursor: "not-allowed",
+ },
+};
+
+const TextInputControl = styled("input")({ ...controlStyles });
+
+const TextAreaControl = styled("textarea")({
+ ...controlStyles,
+ minHeight: "80px",
+ resize: "none",
+});
+
+const PasswordToggle = styled("button")({
+ width: "20px",
+ height: "20px",
+ flex: "0 0 20px",
+ padding: 0,
+ border: 0,
+ borderRadius: "4px",
+ display: "inline-flex",
+ alignItems: "center",
+ justifyContent: "center",
+ background: "transparent",
+ color: "var(--locker-auth-text-faint)",
+ cursor: "pointer",
+ "&:focus-visible": authFocusRing,
+ "&:disabled": {
+ color: "var(--locker-auth-text-disabled)",
+ cursor: "not-allowed",
+ },
+});
diff --git a/web/apps/locker/src/components/auth/TextLink.tsx b/web/apps/locker/src/components/auth/TextLink.tsx
new file mode 100644
index 0000000000..ba7580f1e8
--- /dev/null
+++ b/web/apps/locker/src/components/auth/TextLink.tsx
@@ -0,0 +1,55 @@
+import { styled } from "@mui/material";
+import type React from "react";
+import {
+ authBodyTypography,
+ authFocusRing,
+ authTransientProps,
+} from "./styles";
+
+export interface TextLinkProps extends Omit<
+ React.ButtonHTMLAttributes<HTMLButtonElement>,
+ "color" | "children"
+> {
+ regular?: boolean;
+ children: React.ReactNode;
+}
+
+export function TextLink({
+ regular = false,
+ type = "button",
+ children,
+ ...buttonProps
+}: TextLinkProps): React.JSX.Element {
+ return (
+ <TextLinkRoot type={type} $regular={regular} {...buttonProps}>
+ {children}
+ </TextLinkRoot>
+ );
+}
+
+const TextLinkRoot = styled(
+ "button",
+ authTransientProps,
+)<{ $regular: boolean }>(({ $regular }) => ({
+ ...authBodyTypography,
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "4px",
+ padding: 0,
+ border: 0,
+ background: "transparent",
+ fontFamily: "inherit",
+ fontWeight: $regular ? 500 : 600,
+ color: "var(--locker-auth-primary)",
+ textDecoration: "none",
+ cursor: "pointer",
+ "&:hover:not(:disabled)": {
+ textDecoration: "underline",
+ textUnderlineOffset: "3px",
+ },
+ "&:focus-visible": { ...authFocusRing, borderRadius: "4px" },
+ "&:disabled": {
+ color: "var(--locker-auth-text-disabled)",
+ cursor: "not-allowed",
+ },
+}));
diff --git a/web/apps/locker/src/components/auth/TwoFactorForm.tsx b/web/apps/locker/src/components/auth/TwoFactorForm.tsx
new file mode 100644
index 0000000000..caec794e12
--- /dev/null
+++ b/web/apps/locker/src/components/auth/TwoFactorForm.tsx
@@ -0,0 +1,115 @@
+import { styled } from "@mui/material";
+import type { TwoFactorVerifyPresentationProps } from "ente-accounts/pages/two-factor/verify";
+import { isHTTP401Error } from "ente-base/http";
+import log from "ente-base/log";
+import { useFormik } from "formik";
+import { t } from "i18next";
+import type React from "react";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { Message } from "./Message";
+import { OTPField } from "./OTPField";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextLink } from "./TextLink";
+
+const completeCodePattern = /^\d{6}$/;
+
+export function TwoFactorForm({
+ onSubmit,
+ onRecover,
+ onChangeEmail,
+}: TwoFactorVerifyPresentationProps): React.JSX.Element {
+ const formik = useFormik({
+ initialValues: { otp: "" },
+ validateOnBlur: false,
+ validateOnChange: false,
+ onSubmit: async ({ otp }, { setFieldError, resetForm }) => {
+ if (!completeCodePattern.test(otp)) {
+ setFieldError("otp", t("required"));
+ return;
+ }
+
+ try {
+ await onSubmit(otp);
+ resetForm();
+ } catch (error) {
+ log.error("Failed to submit 2FA code", error);
+ resetForm();
+ setFieldError(
+ "otp",
+ isHTTP401Error(error)
+ ? t("incorrect_code")
+ : t("generic_error"),
+ );
+ }
+ },
+ });
+
+ function handleCodeChange(otp: string) {
+ const shouldAutoSubmit =
+ !completeCodePattern.test(formik.values.otp) &&
+ completeCodePattern.test(otp);
+
+ void formik.setFieldValue("otp", otp).then(() => {
+ if (shouldAutoSubmit && !formik.isSubmitting) {
+ void formik.submitForm();
+ }
+ });
+ }
+
+ return (
+ <>
+ <ScreenHeader
+ title={t("two_factor")}
+ subtitle={t("enter_two_factor_otp")}
+ />
+ <Form onSubmit={formik.handleSubmit}>
+ <FormFields>
+ <OTPField
+ name="otp"
+ value={formik.values.otp}
+ onChange={handleCodeChange}
+ error={Boolean(formik.errors.otp)}
+ disabled={formik.isSubmitting}
+ autoFocus
+ />
+ <Message kind="error" visible={Boolean(formik.errors.otp)}>
+ {formik.errors.otp}
+ </Message>
+ </FormFields>
+ <FormFooter>
+ <Button
+ fullWidth
+ type="submit"
+ loading={formik.isSubmitting}
+ disabled={!completeCodePattern.test(formik.values.otp)}
+ >
+ {t("verify")}
+ </Button>
+ <FooterLinks>
+ <TextLink
+ onClick={onRecover}
+ disabled={formik.isSubmitting}
+ >
+ {t("lost_2fa_device")}
+ </TextLink>
+ <TextLink
+ onClick={onChangeEmail}
+ disabled={formik.isSubmitting}
+ >
+ {t("change_email")}
+ </TextLink>
+ </FooterLinks>
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const FooterLinks = styled("div")({
+ display: "flex",
+ justifyContent: "space-between",
+ gap: "16px",
+});
diff --git a/web/apps/locker/src/components/auth/VerifyEmailForm.tsx b/web/apps/locker/src/components/auth/VerifyEmailForm.tsx
new file mode 100644
index 0000000000..5fb12046fa
--- /dev/null
+++ b/web/apps/locker/src/components/auth/VerifyEmailForm.tsx
@@ -0,0 +1,127 @@
+import { styled } from "@mui/material";
+import type { VerifyEmailPresentationProps } from "ente-accounts/pages/verify";
+import log from "ente-base/log";
+import { useFormik } from "formik";
+import { t } from "i18next";
+import type React from "react";
+import { Trans } from "react-i18next";
+import { Button } from "./Button";
+import { Form } from "./Form";
+import { FormFields } from "./FormFields";
+import { FormFooter } from "./FormFooter";
+import { Message } from "./Message";
+import { OTPField } from "./OTPField";
+import { ScreenHeader } from "./ScreenHeader";
+import { TextLink } from "./TextLink";
+
+const completeCodePattern = /^\d{6}$/;
+
+export function VerifyEmailForm({
+ email,
+ resend,
+ onSubmit,
+ onResend,
+ onChangeEmail,
+}: VerifyEmailPresentationProps): React.JSX.Element {
+ const formik = useFormik({
+ initialValues: { code: "" },
+ onSubmit: async ({ code }, { setFieldError }) => {
+ function setCodeError(message: string) {
+ setFieldError("code", message);
+ }
+
+ if (!completeCodePattern.test(code)) {
+ setCodeError(t("required"));
+ return;
+ }
+
+ try {
+ await onSubmit(code, setCodeError);
+ } catch (error) {
+ log.error("Failed to submit email verification code", error);
+ setCodeError(t("generic_error"));
+ }
+ },
+ });
+
+ function handleCodeChange(code: string) {
+ const shouldAutoSubmit =
+ !completeCodePattern.test(formik.values.code) &&
+ completeCodePattern.test(code);
+
+ void formik.setFieldValue("code", code).then(() => {
+ if (shouldAutoSubmit && !formik.isSubmitting) {
+ void formik.submitForm();
+ }
+ });
+ }
+
+ const resendLabel =
+ resend === "sending"
+ ? t("status_sending")
+ : resend === "sent"
+ ? t("status_sent")
+ : t("resend_code");
+
+ return (
+ <>
+ <ScreenHeader
+ title={t("auth_check_inbox")}
+ subtitle={
+ <Trans
+ i18nKey="auth_verification_code_sent_to"
+ components={{ a: <Email /> }}
+ values={{ email }}
+ />
+ }
+ />
+ <Form onSubmit={formik.handleSubmit}>
+ <FormFields>
+ <OTPField
+ name="code"
+ label={t("verification_code")}
+ value={formik.values.code}
+ onChange={handleCodeChange}
+ error={Boolean(formik.errors.code)}
+ disabled={formik.isSubmitting}
+ autoFocus
+ />
+ <Message kind="error" visible={Boolean(formik.errors.code)}>
+ {formik.errors.code}
+ </Message>
+ </FormFields>
+ <FormFooter>
+ <Button
+ fullWidth
+ type="submit"
+ loading={formik.isSubmitting}
+ >
+ {t("verify")}
+ </Button>
+ <FooterLinks>
+ <TextLink
+ onClick={onResend}
+ disabled={resend !== "enable"}
+ >
+ {resendLabel}
+ </TextLink>
+ <TextLink onClick={onChangeEmail}>
+ {t("change_email")}
+ </TextLink>
+ </FooterLinks>
+ </FormFooter>
+ </Form>
+ </>
+ );
+}
+
+const Email = styled("strong")({
+ color: "var(--locker-auth-text)",
+ wordBreak: "break-word",
+});
+
+const FooterLinks = styled("div")({
+ display: "flex",
+ justifyContent: "space-between",
+ gap: "16px",
+});
diff --git a/web/apps/locker/src/components/auth/styles.ts b/web/apps/locker/src/components/auth/styles.ts
new file mode 100644
index 0000000000..374f179296
--- /dev/null
+++ b/web/apps/locker/src/components/auth/styles.ts
@@ -0,0 +1,83 @@
+export const authColorVariables = {
+ ":where(:root)": {
+ "--locker-auth-primary": "#1071ff",
+ "--locker-auth-primary-hover": "#0056cc",
+ "--locker-auth-primary-active": "#004db8",
+ "--locker-auth-success": "#069d1e",
+ "--locker-auth-warning": "#f63a3a",
+ "--locker-auth-caution": "#f08a1e",
+ "--locker-auth-text": "#000",
+ "--locker-auth-text-muted": "#666",
+ "--locker-auth-text-faint": "#969696",
+ "--locker-auth-text-disabled": "#d6d6d6",
+ "--locker-auth-field": "#fff",
+ "--locker-auth-fill": "#eaeaea",
+ "--locker-auth-fill-hover": "#dedede",
+ "--locker-auth-fill-active": "#d2d2d2",
+ "--locker-auth-stroke": "#e0e0e0",
+ "--locker-auth-button-secondary": "#eaeaea",
+ "--locker-auth-button-secondary-hover": "#dedede",
+ "--locker-auth-button-secondary-active": "#d2d2d2",
+ "--locker-auth-button-secondary-stroke": "transparent",
+ "--locker-auth-button-secondary-stroke-hover": "transparent",
+ "--locker-auth-button-secondary-stroke-active": "transparent",
+ "--locker-auth-button-primary-stroke": "rgba(255, 255, 255, 0.14)",
+ "--locker-auth-button-primary-stroke-hover":
+ "rgba(255, 255, 255, 0.32)",
+ "--locker-auth-button-primary-stroke-active":
+ "rgba(255, 255, 255, 0.2)",
+ },
+ "*:where(.dark)": {
+ "--locker-auth-success": "#08c225",
+ "--locker-auth-text": "#fff",
+ "--locker-auth-text-muted": "#999",
+ "--locker-auth-text-disabled": "#4d4d4d",
+ "--locker-auth-field": "#1a1a1a",
+ "--locker-auth-fill": "#0a0a0a",
+ "--locker-auth-fill-hover": "#1a1a1a",
+ "--locker-auth-fill-active": "#292929",
+ "--locker-auth-stroke": "#3e3e3e",
+ "--locker-auth-button-secondary": "#1e1e1e",
+ "--locker-auth-button-secondary-hover": "#1a1a1a",
+ "--locker-auth-button-secondary-active": "#161616",
+ "--locker-auth-button-secondary-stroke": "rgba(255, 255, 255, 0.07)",
+ "--locker-auth-button-secondary-stroke-hover":
+ "rgba(255, 255, 255, 0.18)",
+ "--locker-auth-button-secondary-stroke-active":
+ "rgba(255, 255, 255, 0.12)",
+ },
+};
+
+const authMobileCutoffPx = 640;
+export const authMobileMediaQuery = `@media (max-width: ${authMobileCutoffPx - 0.05}px)`;
+export const authAboveMobileMediaQuery = `@media (min-width: ${authMobileCutoffPx}px)`;
+
+export const authTransientProps = {
+ shouldForwardProp: (prop: string) => !prop.startsWith("$"),
+};
+
+export const authDisplayFontFamily = '"Outfit Variable", sans-serif';
+
+export const authFocusRing = {
+ outline: "1px solid var(--locker-auth-primary)",
+ outlineOffset: "2px",
+};
+
+export const authBodyTypography = {
+ fontSize: "14px",
+ fontWeight: 500,
+ lineHeight: "20px",
+};
+
+export const authMiniTypography = {
+ fontSize: "12px",
+ fontWeight: 500,
+ lineHeight: "16px",
+};
+
+export const authDialogContentLayout = {
+ display: "flex",
+ flexDirection: "column",
+ gap: "24px",
+ [authMobileMediaQuery]: { gap: "20px" },
+} as const;
diff --git a/web/apps/locker/src/featureFlags.ts b/web/apps/locker/src/featureFlags.ts
new file mode 100644
index 0000000000..4d24f24430
--- /dev/null
+++ b/web/apps/locker/src/featureFlags.ts
@@ -0,0 +1,3 @@
+export const featureFlags: Record<"enableNewLockerAuthFlow", boolean> = {
+ enableNewLockerAuthFlow: true,
+};
diff --git a/web/apps/locker/src/pages/_app.tsx b/web/apps/locker/src/pages/_app.tsx
index 5795841e93..4f98662dc6 100644
--- a/web/apps/locker/src/pages/_app.tsx
+++ b/web/apps/locker/src/pages/_app.tsx
@@ -1,6 +1,7 @@
import { LockerHead } from "@/components/LockerHead";
import { lockerLogout } from "@/services/logout";
import "@fontsource-variable/inter";
+import "@fontsource-variable/outfit";
import { CssBaseline } from "@mui/material";
import { ThemeProvider } from "@mui/material/styles";
import {
diff --git a/web/apps/locker/src/pages/change-password.tsx b/web/apps/locker/src/pages/change-password.tsx
index 0e494377ee..7bbb2ba9dd 100644
--- a/web/apps/locker/src/pages/change-password.tsx
+++ b/web/apps/locker/src/pages/change-password.tsx
@@ -1 +1,30 @@
-export { default } from "ente-accounts/pages/change-password";
+import { SetPasswordForm } from "@/components/auth/SetPasswordForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import type { NewPasswordPresentationProps } from "ente-accounts/components/NewPasswordForm";
+import AccountsChangePasswordPage from "ente-accounts/pages/change-password";
+import type React from "react";
+
+function ResetPasswordPresentation(
+ props: NewPasswordPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <SetPasswordForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function ChangePasswordPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsChangePasswordPage />;
+ }
+
+ return (
+ <AccountsChangePasswordPage
+ resetPresentation={ResetPasswordPresentation}
+ />
+ );
+}
+
+export default ChangePasswordPage;
diff --git a/web/apps/locker/src/pages/credentials.tsx b/web/apps/locker/src/pages/credentials.tsx
index 9b8df2e13d..2c3a65ae5d 100644
--- a/web/apps/locker/src/pages/credentials.tsx
+++ b/web/apps/locker/src/pages/credentials.tsx
@@ -1 +1,35 @@
-export { default } from "ente-accounts/pages/credentials";
+import {
+ CredentialsForm,
+ PasswordForm,
+} from "@/components/auth/CredentialsForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsCredentialsPage, {
+ type CredentialsPresentationProps,
+} from "ente-accounts/pages/credentials";
+import type React from "react";
+
+function CredentialsPresentation(
+ props: CredentialsPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <CredentialsForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function CredentialsPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsCredentialsPage />;
+ }
+
+ return (
+ <AccountsCredentialsPage
+ presentation={CredentialsPresentation}
+ passwordPresentation={PasswordForm}
+ />
+ );
+}
+
+export default CredentialsPage;
diff --git a/web/apps/locker/src/pages/generate.tsx b/web/apps/locker/src/pages/generate.tsx
index 670ed3e823..ac73092a5e 100644
--- a/web/apps/locker/src/pages/generate.tsx
+++ b/web/apps/locker/src/pages/generate.tsx
@@ -1 +1,43 @@
-export { default } from "ente-accounts/pages/generate";
+import { RecoveryKeyForm } from "@/components/auth/RecoveryKeyForm";
+import { SetPasswordForm } from "@/components/auth/SetPasswordForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import type { NewPasswordPresentationProps } from "ente-accounts/components/NewPasswordForm";
+import type { RecoveryKeyPresentationProps } from "ente-accounts/components/RecoveryKey";
+import AccountsGeneratePage from "ente-accounts/pages/generate";
+import type React from "react";
+
+function RecoveryKeyPresentation(
+ props: RecoveryKeyPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <RecoveryKeyForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function SetPasswordPresentation(
+ props: NewPasswordPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <SetPasswordForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function GeneratePage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsGeneratePage />;
+ }
+
+ return (
+ <AccountsGeneratePage
+ passwordPresentation={SetPasswordPresentation}
+ recoveryKeyPresentation={RecoveryKeyPresentation}
+ />
+ );
+}
+
+export default GeneratePage;
diff --git a/web/apps/locker/src/pages/login.tsx b/web/apps/locker/src/pages/login.tsx
index 701522786e..9173ce1615 100644
--- a/web/apps/locker/src/pages/login.tsx
+++ b/web/apps/locker/src/pages/login.tsx
@@ -1,28 +1,34 @@
-import { Paper, Stack, styled } from "@mui/material";
-import { LoginContents } from "ente-accounts/components/LoginContents";
+import { LoginForm } from "@/components/auth/LoginForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import {
+ LoginContents,
+ type LoginPresentationProps,
+} from "ente-accounts/components/LoginContents";
+import AccountsLoginPage from "ente-accounts/pages/login";
import { savedPartialLocalUser } from "ente-accounts/services/accounts-db";
-import { CenteredFill } from "ente-base/components/containers";
-import { EnteLogo } from "ente-base/components/EnteLogo";
import { LoadingIndicator } from "ente-base/components/loaders";
-import { NavbarBase } from "ente-base/components/Navbar";
import { customAPIHost } from "ente-base/origins";
import { useRouter } from "next/router";
import React, { useCallback, useEffect, useState } from "react";
-const AccountsPagePaper = styled(Paper)(({ theme }) => ({
- marginBlock: theme.spacing(2),
- padding: theme.spacing(5, 3),
- [theme.breakpoints.up("sm")]: { padding: theme.spacing(5) },
- width: "min(420px, 85vw)",
- minHeight: "375px",
- display: "flex",
- flexDirection: "column",
- gap: theme.spacing(4),
- boxShadow: "none",
- borderRadius: "20px",
-}));
+function LoginPresentation(props: LoginPresentationProps): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <LoginForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function LoginPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsLoginPage />;
+ }
+
+ return <NewLoginPage />;
+}
-const Page: React.FC = () => {
+function NewLoginPage(): React.JSX.Element {
const [loading, setLoading] = useState(true);
const [host, setHost] = useState<string | undefined>(undefined);
@@ -47,39 +53,11 @@ const Page: React.FC = () => {
return loading ? (
<LoadingIndicator />
) : (
- <Stack
- sx={[
- { minHeight: "100svh", bgcolor: "secondary.main" },
- (theme) =>
- theme.applyStyles("dark", {
- bgcolor: "background.default",
- }),
- ]}
- >
- <NavbarBase
- sx={{
- boxShadow: "none",
- borderBottom: "none",
- bgcolor: "transparent",
- }}
- >
- <EnteLogo />
- </NavbarBase>
- <CenteredFill
- sx={[
- { bgcolor: "secondary.main" },
- (theme) =>
- theme.applyStyles("dark", {
- bgcolor: "background.default",
- }),
- ]}
- >
- <AccountsPagePaper>
- <LoginContents {...{ host, onSignUp }} />
- </AccountsPagePaper>
- </CenteredFill>
- </Stack>
+ <LoginContents
+ {...{ host, onSignUp }}
+ presentation={LoginPresentation}
+ />
);
-};
+}
-export default Page;
+export default LoginPage;
diff --git a/web/apps/locker/src/pages/passkeys/recover.tsx b/web/apps/locker/src/pages/passkeys/recover.tsx
index 972142211c..c9166b93c3 100644
--- a/web/apps/locker/src/pages/passkeys/recover.tsx
+++ b/web/apps/locker/src/pages/passkeys/recover.tsx
@@ -1,5 +1,32 @@
-import Page_ from "ente-accounts/pages/two-factor/recover";
+import { RecoverTwoFactorForm } from "@/components/auth/RecoveryForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsTwoFactorRecoverPage, {
+ type TwoFactorRecoverPresentationProps,
+} from "ente-accounts/pages/two-factor/recover";
+import type React from "react";
-const Page = () => <Page_ twoFactorType="passkey" />;
+function RecoverTwoFactorPresentation(
+ props: TwoFactorRecoverPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell contentWidth={420}>
+ <RecoverTwoFactorForm {...props} />
+ </LockerAuthShell>
+ );
+}
-export default Page;
+function PasskeyRecoverPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsTwoFactorRecoverPage twoFactorType="passkey" />;
+ }
+
+ return (
+ <AccountsTwoFactorRecoverPage
+ twoFactorType="passkey"
+ presentation={RecoverTwoFactorPresentation}
+ />
+ );
+}
+
+export default PasskeyRecoverPage;
diff --git a/web/apps/locker/src/pages/recover.tsx b/web/apps/locker/src/pages/recover.tsx
index eb6a74c593..d2756d6ed3 100644
--- a/web/apps/locker/src/pages/recover.tsx
+++ b/web/apps/locker/src/pages/recover.tsx
@@ -1 +1,27 @@
-export { default } from "ente-accounts/pages/recover";
+import { RecoverAccountForm } from "@/components/auth/RecoveryForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsRecoverPage, {
+ type RecoverAccountPresentationProps,
+} from "ente-accounts/pages/recover";
+import type React from "react";
+
+function RecoverAccountPresentation(
+ props: RecoverAccountPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell contentWidth={420}>
+ <RecoverAccountForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function RecoverPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsRecoverPage />;
+ }
+
+ return <AccountsRecoverPage presentation={RecoverAccountPresentation} />;
+}
+
+export default RecoverPage;
diff --git a/web/apps/locker/src/pages/signup.tsx b/web/apps/locker/src/pages/signup.tsx
index fa3c32852a..8de19d0a0f 100644
--- a/web/apps/locker/src/pages/signup.tsx
+++ b/web/apps/locker/src/pages/signup.tsx
@@ -1 +1,24 @@
-export { default } from "ente-accounts/pages/signup";
+import { SignUpForm } from "@/components/auth/SignUpForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import type { SignUpPresentationProps } from "ente-accounts/components/SignUpContents";
+import AccountsSignUpPage from "ente-accounts/pages/signup";
+import type React from "react";
+
+function SignUpPresentation(props: SignUpPresentationProps): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <SignUpForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function SignUpPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsSignUpPage />;
+ }
+
+ return <AccountsSignUpPage presentation={SignUpPresentation} />;
+}
+
+export default SignUpPage;
diff --git a/web/apps/locker/src/pages/two-factor/recover.tsx b/web/apps/locker/src/pages/two-factor/recover.tsx
index 201393276a..34fcce96c7 100644
--- a/web/apps/locker/src/pages/two-factor/recover.tsx
+++ b/web/apps/locker/src/pages/two-factor/recover.tsx
@@ -1,5 +1,32 @@
-import Page_ from "ente-accounts/pages/two-factor/recover";
+import { RecoverTwoFactorForm } from "@/components/auth/RecoveryForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsTwoFactorRecoverPage, {
+ type TwoFactorRecoverPresentationProps,
+} from "ente-accounts/pages/two-factor/recover";
+import type React from "react";
-const Page = () => <Page_ twoFactorType="totp" />;
+function RecoverTwoFactorPresentation(
+ props: TwoFactorRecoverPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell contentWidth={420}>
+ <RecoverTwoFactorForm {...props} />
+ </LockerAuthShell>
+ );
+}
-export default Page;
+function TwoFactorRecoverPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsTwoFactorRecoverPage twoFactorType="totp" />;
+ }
+
+ return (
+ <AccountsTwoFactorRecoverPage
+ twoFactorType="totp"
+ presentation={RecoverTwoFactorPresentation}
+ />
+ );
+}
+
+export default TwoFactorRecoverPage;
diff --git a/web/apps/locker/src/pages/two-factor/verify.tsx b/web/apps/locker/src/pages/two-factor/verify.tsx
index f3f3c99656..4caee823c5 100644
--- a/web/apps/locker/src/pages/two-factor/verify.tsx
+++ b/web/apps/locker/src/pages/two-factor/verify.tsx
@@ -1 +1,27 @@
-export { default } from "ente-accounts/pages/two-factor/verify";
+import { TwoFactorForm } from "@/components/auth/TwoFactorForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsTwoFactorVerifyPage, {
+ type TwoFactorVerifyPresentationProps,
+} from "ente-accounts/pages/two-factor/verify";
+import type React from "react";
+
+function TwoFactorPresentation(
+ props: TwoFactorVerifyPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <TwoFactorForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function TwoFactorVerifyPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsTwoFactorVerifyPage />;
+ }
+
+ return <AccountsTwoFactorVerifyPage presentation={TwoFactorPresentation} />;
+}
+
+export default TwoFactorVerifyPage;
diff --git a/web/apps/locker/src/pages/verify.tsx b/web/apps/locker/src/pages/verify.tsx
index 7ec623fac9..692909e34a 100644
--- a/web/apps/locker/src/pages/verify.tsx
+++ b/web/apps/locker/src/pages/verify.tsx
@@ -1 +1,27 @@
-export { default } from "ente-accounts/pages/verify";
+import { VerifyEmailForm } from "@/components/auth/VerifyEmailForm";
+import { LockerAuthShell } from "@/components/LockerAuthShell";
+import { featureFlags } from "@/featureFlags";
+import AccountsVerifyPage, {
+ type VerifyEmailPresentationProps,
+} from "ente-accounts/pages/verify";
+import type React from "react";
+
+function VerifyEmailPresentation(
+ props: VerifyEmailPresentationProps,
+): React.JSX.Element {
+ return (
+ <LockerAuthShell>
+ <VerifyEmailForm {...props} />
+ </LockerAuthShell>
+ );
+}
+
+function VerifyPage(): React.JSX.Element {
+ if (!featureFlags.enableNewLockerAuthFlow) {
+ return <AccountsVerifyPage />;
+ }
+
+ return <AccountsVerifyPage presentation={VerifyEmailPresentation} />;
+}
+
+export default VerifyPage;
diff --git a/web/package-lock.json b/web/package-lock.json
index 0d5db5ea75..2bc4cded69 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -224,6 +224,7 @@
"apps/locker": {
"version": "0.0.0",
"dependencies": {
+ "@fontsource-variable/outfit": "5.2.8",
"@hugeicons/core-free-icons": "1.2.1",
"@hugeicons/react": "1.1.6",
"ente-accounts": "*",
diff --git a/web/packages/base/locales/en-US/translation.json b/web/packages/base/locales/en-US/translation.json
index 8b36be459c..e2c0091211 100644
--- a/web/packages/base/locales/en-US/translation.json
+++ b/web/packages/base/locales/en-US/translation.json
@@ -888,6 +888,9 @@
"photos_auth_free_storage": "10 GB free forever",
"photos_auth_no_ads_no_spying": "No ads, no spying",
"photos_auth_open_source_audited": "Open source, independently audited",
+ "locker_auth_headline": "Safe home for your important files",
+ "locker_auth_free_files": "100 files free forever",
+ "locker_auth_password_recovery_warning": "We don't store your password. If you forget it, the only way back to your files is your recovery key.",
"auth_recover_account_subtitle": "Enter the recovery key you saved when you created your account.",
"auth_recover_two_factor_subtitle": "Enter your recovery key to regain access to your account.",
"auth_recovery_key_placeholder": "Paste your 24-word recovery key",