UX: login modal adjustments (#12552)

UX: login modal adjustments (#12552)

diff --git a/app/assets/stylesheets/common/base/login.scss b/app/assets/stylesheets/common/base/login.scss
index ea485a7..085bc0f 100644
--- a/app/assets/stylesheets/common/base/login.scss
+++ b/app/assets/stylesheets/common/base/login.scss
@@ -21,10 +21,10 @@
   background: var(--secondary);
   #login-buttons:not(.hidden) {
     .btn.btn-social,
-    .btn,
-    .login-with-email-button {
+    .btn {
       border: 1px solid var(--primary-low-mid);
-      &:hover {
+      &:hover,
+      &:focus {
         background: var(--primary-very-low);
       }
     }
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index d595aea..4112190 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -110,21 +110,6 @@
   }
 }
 
-// slide in
-@keyframes slidein {
-  from {
-    transform: translateY(-20%);
-  }
-  to {
-    transform: translateY(0);
-  }
-}
-
-.create-account.in .modal-inner-container,
-.login-modal.in .modal-inner-container {
-  animation: slidein 0.3s;
-}
-
 .inline-modal {
   .modal-inner-container {
     border: 1px solid var(--secondary-medium);
diff --git a/app/assets/stylesheets/common/components/buttons.scss b/app/assets/stylesheets/common/components/buttons.scss
index f043701..4de5752 100644
--- a/app/assets/stylesheets/common/components/buttons.scss
+++ b/app/assets/stylesheets/common/components/buttons.scss
@@ -161,19 +161,14 @@
 // Social buttons
 // --------------------------------------------------
 
-.btn-social,
-.login-with-email-button {
-  border-radius: 0.25em;
+.btn-social {
   color: #000;
-  background: #ffffff;
+  background: #fff;
   border: 1px solid transparent;
-  &:hover {
-    color: #000 !important;
-    background: #ececec !important;
-    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25);
-    .d-icon {
-      color: inherit !important;
-    }
+  &:hover,
+  &:focus {
+    box-shadow: shadow("card");
+    outline: 1px solid #000;
   }
   &[href] {
     color: var(--secondary);
diff --git a/app/assets/stylesheets/desktop/login.scss b/app/assets/stylesheets/desktop/login.scss
index d6f1d98..2064e07 100644
--- a/app/assets/stylesheets/desktop/login.scss
+++ b/app/assets/stylesheets/desktop/login.scss
@@ -22,8 +22,21 @@
     min-height: 75px;
     order: 2;
 
+    &:focus-within,
+    &:hover {
+      button:not(:hover):not(:focus) {
+        opacity: 0.75;
+      }
+    }
+
     button {
-      margin: 0.35em;
+      margin: 0.35em 0;
+      &:first-of-type {
+        margin-top: 0;
+      }
+      &:last-of-type {
+        margin-bottom: 0;
+      }
       &:lang(zh_CN) {
         min-width: 200px;
       }
@@ -72,7 +85,8 @@
       .login-with-email-button {
         border: 1px solid var(--primary-low-mid);
         margin-bottom: 0.5em;
-        &:hover {
+        &:hover,
+        &:focus {
           background: var(--primary-very-low) !important;
         }
       }
@@ -103,7 +117,8 @@
             .d-icon {
               color: #000 !important;
             }
-            &:hover {
+            &:hover,
+            &:focus {
               box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.25);
               .d-icon {
                 color: #000 !important;
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index e16f883..8f22a52 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -1774,9 +1774,9 @@ en:
       confirm_button: Finish Login
 
     login:
-      header_title: "Welcome Back"
+      header_title: "Welcome back"
       subheader_title: "Log in to your account"
-      title: "Log In"
+      title: "Log in"
       username: "User"
       password: "Password"
       second_factor_title: "Two-Factor Authentication"

GitHub sha: 6d65320a

This commit appears in #12552 which was approved by CvX. It was merged by awesomerobot.