/* Greenstein.Design — Roundcube login skin (light, seriös) */

body.task-login,
html.dark-mode body.task-login {
	background: #f5f5f5 !important;
	color: #161b1d;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

body.task-login #layout-content {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	text-align: center;
	background: transparent !important;
}

body.task-login #login-card {
	background: #ffffff;
	border: 1px solid #eee;
	border-radius: 12px;
	box-shadow: 0 4px 28px rgba(0, 0, 0, 0.06);
	padding: 3rem 2.75rem 2.25rem;
	width: 100%;
	max-width: 380px;
	margin: 2rem;
	box-sizing: border-box;
}

body.task-login #logo {
	position: static !important;
	top: auto !important;
	display: inline-block;
	max-height: 40px;
	height: 40px;
	width: auto;
	margin-bottom: 0.6rem;
}

body.task-login #login-webmail-badge {
	display: table;
	margin: 0.5rem auto 1.1rem;
	padding: 0.2rem 0.7rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #2e9a0b;
	background: rgba(62, 192, 15, 0.1);
	border-radius: 999px;
}

body.task-login #login-claim {
	margin: 0 0 1.85rem;
	font-size: 0.8125rem;
	color: #6b7280;
	letter-spacing: 0.01em;
}

body.task-login #login-form {
	position: static !important;
	top: auto !important;
	width: 100%;
	max-width: 100%;
	margin: 0;
	text-align: left;
}

/* Roundcube/Elastic renders each field as a Bootstrap .input-group
   (icon + input side by side). Only override spacing/colors here —
   keep display:flex intact so the icon box and input stay in one row. */
body.task-login #login-form .row {
	margin-bottom: 1rem;
}

body.task-login #login-form .input-group {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
}

body.task-login #login-form .input-group .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 2.6rem;
	background: #f3f4f6;
	border: 1px solid #ddd;
	border-right: none;
	border-radius: 7px 0 0 7px;
	color: #374151;
}

body.task-login #login-form .input-group input.form-control,
body.task-login #login-form input[type="text"],
body.task-login #login-form input[type="password"] {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	border: 1px solid #ddd;
	border-radius: 7px;
	padding: 0.6rem 0.75rem;
	font-size: 0.9375rem;
	box-sizing: border-box;
	background: #fff;
	color: #161b1d;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.task-login #login-form .input-group input.form-control {
	border-radius: 0 7px 7px 0;
}

body.task-login #login-form input.form-control:focus,
body.task-login #login-form input[type="text"]:focus,
body.task-login #login-form input[type="password"]:focus {
	outline: none;
	border-color: #3ec00f;
	box-shadow: 0 0 0 3px rgba(62, 192, 15, 0.15);
	position: relative;
	z-index: 1;
}

body.task-login #login-form input[type="submit"],
body.task-login #login-form input.button,
body.task-login #login-form #rcmloginsubmit,
body.task-login #login-form button {
	width: 100%;
	background: #3ec00f;
	border: none;
	border-radius: 7px;
	color: #fff;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.7rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
	margin-top: 0.25rem;
}

body.task-login #login-form input[type="submit"]:hover,
body.task-login #login-form input.button:hover,
body.task-login #login-form #rcmloginsubmit:hover,
body.task-login #login-form button:hover {
	background: #2e9a0b;
}

body.task-login #login-footer {
	margin-top: 1.5rem;
	font-size: 0.75rem;
	color: #9ca3af;
	text-align: center;
}

body.task-login #login-footer > div {
	background: transparent;
	padding: 0;
	margin-top: 0.5rem;
}

body.task-login #login-footer a.support-link {
	color: #3ec00f;
}

body.task-login #login-footer a.support-link:hover {
	color: #2e9a0b;
}

body.task-login #login-legal {
	margin-top: 1.25rem;
	font-size: 0.6875rem;
	color: #9ca3af;
}

body.task-login #login-legal a {
	color: #9ca3af;
	text-decoration: underline;
}

body.task-login #login-legal a:hover {
	color: #3ec00f;
}

body.task-login #login-legal span {
	margin: 0 0.4rem;
}

/* de-emphasize browser autofill yellow tint to stay on-brand */
body.task-login #login-form input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: #161b1d;
}
