diff --git a/synapse/res/templates/sso.css b/synapse/res/templates/sso.css
index 428ee917b328cf9afdaa6825441cf2a05e21b1e5..46b309ea4e83a548f8972bb4c82f3f9d48acc5f6 100644
--- a/synapse/res/templates/sso.css
+++ b/synapse/res/templates/sso.css
@@ -55,6 +55,7 @@ main {
   display: block;
   border-radius: 12px;
   width: 100%;
+  box-sizing: border-box;
   margin: 16px 0;
   cursor: pointer;
   text-align: center;