diff --git a/core/css/guest.css b/core/css/guest.css
index be8b2a604c7977519ca8681e66189adcd3b6be00..689eb45d65f36d2625692e21a6664a71c46bbf2e 100644
--- a/core/css/guest.css
+++ b/core/css/guest.css
@@ -70,9 +70,16 @@ h3 {
 	background-size: 175px;
 	background-position: center;
 	width: 252px;
-	height: 120px;
+	min-height: 120px;
+	max-height: 200px;
 	margin: 0 auto;
 }
+
+#header .logo img {
+	opacity: 0;
+	max-width: 100%;
+	max-height: 200px;
+}
 .wrapper {
 	min-height: 100%;
 	margin: 0 auto -70px;
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 1e2559d69605bf1ca0f5d7997e33d59f6eb45c92..1f38aaef5f9be0c9018fd870bdbf1261aa884d12 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -40,6 +40,9 @@
 								<h1 class="hidden-visually">
 									<?php p($theme->getName()); ?>
 								</h1>
+								<?php if(\OC::$server->getConfig()->getAppValue('theming', 'logoMime', false)): ?>
+									<img src="<?php p($theme->getLogo()); ?>"/>
+								<?php endif; ?>
 							</div>
 							<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
 						</div>