diff --git a/src/authorization.html b/src/authorization.html index 41395c3..daff901 100644 --- a/src/authorization.html +++ b/src/authorization.html @@ -92,11 +92,11 @@ width: min-content; } - .container[data-valid="true"] { + form[data-valid="true"] > .container { border-color: var(--success); } - .container[data-valid="false"] { + form[data-valid="false"] > .container { border-color: var(--caution); } @@ -124,11 +124,6 @@ background: var(--primary); } - .generate-text { - text-align: center; - margin: 1.5rem 0; - } - a { color: inherit; } @@ -143,16 +138,8 @@ padding: 1rem; border-radius: 5px; box-sizing: border-box; - transition: ease 0.4s; - overflow: hidden; } - .info-accounts.hidden { - height: 0; - opacity: 0; - } - - button[data-state="password"] .closed { display: none; } @@ -161,19 +148,15 @@ display: none; } - @media (prefers-color-scheme: light) { - :root { - --background: #fefefe; - --text: #2f2f2f; - --primary: #b0b0b0; - --secondary: #d9d9d9; - --success: #76B041; - --caution: #FF6B6C; - --caution-darker: #c83033; - } - .info-accounts { - color: #fefefe; - } + form[data-valid="true"] .generate { + display: none; + } + + .login-once { + display: none; + } + form[data-valid="true"] .login-once { + display: block; } .login-action-container { @@ -205,6 +188,21 @@ width: max-content; margin: 1.5em auto; } + + @media (prefers-color-scheme: light) { + :root { + --background: #fefefe; + --text: #2f2f2f; + --primary: #b0b0b0; + --secondary: #d9d9d9; + --success: #76B041; + --caution: #FF6B6C; + --caution-darker: #c83033; + } + .info-accounts { + color: #fefefe; + } + } @@ -219,7 +217,7 @@ {{client_name}} -
+
@@ -239,8 +237,8 @@ Generate new account - - + +
-

{{notice}}

- +