/* Slightly Different branding for Roundcube (Elastic) - 29 Oct 2026.
 * Colours/type from www.slightlydifferent.co.nz: cream #F5F4F0, ink #141210, orange #EFA129, muted #6B655C.
 * Loaded by the customizr plugin (custom_stylesheet). Kept in custombuild/custom/roundcube so DA updates keep it. */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-weight: 100 900; font-display: swap; src: url('roboto-slab-var.woff2') format('woff2'); }

/* ---------- login page ---------- */
body.task-login,
body.task-login #layout,
body.task-login #layout-content,
html.dark-mode body.task-login,
html.dark-mode body.task-login #layout,
html.dark-mode body.task-login #layout-content {
	background: #F5F4F0 !important;
	color: #141210 !important;
	font-family: 'Poppins', system-ui, sans-serif;
}
body.task-login #layout-content { position: relative; overflow: hidden; }
/* the brand's tilted orange square, soft, behind the card */
body.task-login #layout-content::before {
	content: ''; position: absolute; z-index: 0; pointer-events: none;
	width: 520px; height: 520px; right: -140px; top: -120px;
	background: #EFA129; opacity: .14; border-radius: 48px; transform: rotate(-8deg);
}
body.task-login #layout-content::after {
	content: ''; position: absolute; z-index: 0; pointer-events: none;
	width: 300px; height: 300px; left: -110px; bottom: -90px;
	background: #EFA129; opacity: .10; border-radius: 36px; transform: rotate(-8deg);
}
body.task-login #layout-content > * { position: relative; z-index: 1; }
body.task-login #login-form {
	background: #fff; border-radius: 24px; box-shadow: 0 1px 0 #E4E1D9, 0 18px 40px rgba(20,18,16,.08);
	padding: 2.5rem 2.25rem 2rem; max-width: 400px; width: 100%; margin: 0 auto; box-sizing: border-box;
}
body.task-login #layout-content { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
body.task-login #login-form table { width: 100%; min-width: 0; table-layout: fixed; }
@media (max-width: 480px) {
	body.task-login #login-form { padding: 2rem 1.25rem 1.5rem; }
	body.task-login #layout-content::before { width: 360px; height: 360px; right: -160px; top: -100px; }
}
body.task-login #logo {
	display: block; width: 240px; max-width: 70vw; height: auto; margin: 0 auto 1.75rem;
}
body.task-login #login-form::before {
	content: 'Webmail'; display: block; text-align: center; margin: -.5rem 0 1.25rem;
	font-family: 'Roboto Slab', Georgia, serif; font-weight: 800; letter-spacing: -.02em; font-size: 1.6rem; color: #141210;
}
body.task-login #login-form table, body.task-login #login-form td { background: transparent !important; border: 0; }
body.task-login #login-form .input-group { border: 0; margin-bottom: .75rem; }
body.task-login #login-form .input-group-prepend { display: none; }
body.task-login #login-form .form-control,
html.dark-mode body.task-login #login-form .form-control {
	height: 3rem; padding: 0 1rem; font-size: 1rem; font-family: inherit;
	background: #fff !important; color: #141210 !important;
	border: 2px solid rgba(20,18,16,.15) !important; border-radius: 14px !important;
}
body.task-login #login-form .form-control:focus {
	border-color: #141210 !important; box-shadow: 0 0 0 4px rgba(239,161,41,.35) !important; outline: 0;
}
body.task-login #login-form .form-control::placeholder { color: #6B655C; }
body.task-login #rcmloginsubmit,
html.dark-mode body.task-login #rcmloginsubmit {
	height: 3rem; margin-top: .75rem; border: 0 !important; border-radius: 999px !important;
	background: #141210 !important; color: #F5F4F0 !important;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: 0; text-transform: none;
	box-shadow: 0 8px 0 -2px #EFA129; transition: transform .12s, box-shadow .12s;
}
body.task-login #rcmloginsubmit:hover { transform: translateY(-1px); box-shadow: 0 10px 0 -2px #FFC27A; }
body.task-login #rcmloginsubmit:active { transform: translateY(3px); box-shadow: 0 4px 0 -2px #EFA129; }
body.task-login #login-footer, html.dark-mode body.task-login #login-footer {
	color: #6B655C !important; margin-top: 1.5rem; font-size: .85rem;
}
body.task-login #login-footer a, html.dark-mode body.task-login #login-footer a { color: #8F5606 !important; font-weight: 600; }
body.task-login #message .ui.alert, body.task-login .boxwarning, body.task-login .boxerror { border-radius: 14px; }

/* ---------- inside the mailbox: logo + accent colour only ---------- */
#layout-menu #logo { max-height: 3.2rem; }
.button.mainaction, .btn-primary, .formbuttons .button.mainaction {
	background-color: #141210 !important; border-color: #141210 !important; color: #F5F4F0 !important; border-radius: 999px;
}
.button.mainaction:hover, .btn-primary:hover { background-color: #2a2622 !important; border-color: #2a2622 !important; }
html.dark-mode .button.mainaction, html.dark-mode .btn-primary {
	background-color: #EFA129 !important; border-color: #EFA129 !important; color: #141210 !important;
}
#layout-menu .compose { background-color: #EFA129 !important; border-color: #EFA129 !important; color: #141210 !important; }

/* Elastic dims the logo to .8 in dark mode; keep the brand orange solid */
html.dark-mode #logo { opacity: 1 !important; }
