/* nbbalbb Mail login page. Split layout: photo brand panel + login card.
   Overrides the stock Elastic login look; the rest of the skin is Elastic. */

.task-login #layout {
	display: block;
	height: 100%;
}

.task-login #layout-content,
.task-login #logo {
	display: none;
}

.nb-login {
	display: flex;
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
	font-family: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ---------- Brand panel (left) ---------- */
.nb-brand {
	flex: 1 1 56%;
	position: relative;
	color: #fff;
	background: #0b1c2c url("../images/la-skyline.jpg") center/cover no-repeat;
	overflow: hidden;
}

.nb-brand::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 20, 34, 0.55) 0%, rgba(6, 20, 34, 0.22) 42%, rgba(6, 20, 34, 0.68) 100%);
}

.nb-brand-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 44px 56px 36px;
}

.nb-brand-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.nb-brand-logo {
	width: 40px;
	height: 40px;
}

.nb-brand-name {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.nb-brand-main {
	max-width: 520px;
}

.nb-brand-title {
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 14px;
}

.nb-brand-tag {
	font-size: 19px;
	line-height: 1.6;
	margin: 0 0 34px;
	color: rgba(255, 255, 255, 0.88);
}

.nb-brand-feats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nb-brand-feats li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.92);
}

.nb-brand-feats svg {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	fill: #7ec8f7;
}

.nb-brand-foot {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

/* ---------- Login panel (right) ---------- */
.nb-panel {
	flex: 1 1 44%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	background: #fff;
}

.nb-card {
	width: 100%;
	max-width: 400px;
}

.nb-card-head {
	text-align: center;
	margin-bottom: 30px;
}

.nb-card-logo {
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
}

.nb-card-title {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.nb-card-sub {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
}

/* Roundcube login form, restyled as stacked modern inputs.
   The stock Elastic skin injects a user/lock icon next to each input via
   .input-group; those icons break when the table is unrolled to blocks,
   so hide them -- the labels already say what each field is.
   Elastic also pushes the form down with top: 20vh (meant for the stock
   centered page); inside this card that leaves a ~200px hole, so reset it. */
.nb-card #login-form {
	margin: 0;
	padding: 0;
	top: 0;
}

.nb-card #login-form table {
	margin: 0;
}

.nb-card #login-form .input-group {
	display: block;
}

.nb-card #login-form .input-group .icon {
	display: none;
}

.nb-card #login-form table,
.nb-card #login-form tbody,
.nb-card #login-form tr,
.nb-card #login-form td {
	display: block;
	width: 100%;
}

.nb-card #login-form .title {
	padding: 0;
	margin-bottom: 6px;
}

.nb-card #login-form .title label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.nb-card #login-form .input {
	padding: 0;
	margin-bottom: 18px;
}

.nb-card #login-form input.form-control {
	width: 100%;
	height: 50px;
	font-size: 16px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
}

.nb-card #login-form input.form-control:focus {
	border-color: #1f6feb;
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}

.nb-card #login-form .formbuttons {
	margin: 6px 0 0;
}

.nb-card #rcmloginsubmit {
	width: 100%;
	height: 50px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 10px;
	background: #1f6feb;
	color: #fff;
	cursor: pointer;
}

.nb-card #rcmloginsubmit:hover {
	background: #1a5fd0;
}

.nb-card #rcmloginsubmit::before {
	display: none !important;
}

.nb-card #login-footer {
	margin-top: 22px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
}

.nb-card #login-footer a {
	color: #1f6feb;
	text-decoration: none;
}

.nb-card #login-footer a:hover {
	text-decoration: underline;
}

.nb-card .nb-dot {
	margin: 0 8px;
	color: #9ca3af;
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 820px) {
	.nb-login {
		flex-direction: column;
	}

	.nb-brand {
		flex: 0 0 auto;
		min-height: 250px;
	}

	.nb-brand-inner {
		padding: 28px 24px 22px;
	}

	.nb-brand-main,
	.nb-brand-foot {
		display: none;
	}

	.nb-brand-top {
		margin-top: 4px;
	}

	.nb-brand::after {
		content: "nbbalbb Mail";
		position: absolute;
		left: 24px;
		bottom: 20px;
		z-index: 1;
		font-size: 24px;
		font-weight: 700;
		color: #fff;
	}

	.nb-panel {
		flex: 1 1 auto;
		align-items: flex-start;
		padding: 36px 20px 28px;
	}

	.nb-card-head {
		margin-bottom: 24px;
	}
}
