diff --git a/core/css/publicshareauth.css b/core/css/publicshareauth.css
index 2206f21dff67e5a2dd71d8562c2679ea2947f198..c3713ff0e8bf3817d2208e8cf98d0d34b2f72ea1 100644
--- a/core/css/publicshareauth.css
+++ b/core/css/publicshareauth.css
@@ -26,3 +26,8 @@ input[type='submit'].icon-confirm {
 	height: 45px;
 	background-color: transparent !important;
 }
+
+.warning > .warning {
+	/* Do not use a top margin for warning messages in the warning container. */
+	margin-top: 0;
+}