/*
 * SaaS Theme — Login Page (Split Layout)
 * CommitStreet
 */

/* ===== Hide navbar, footer, breadcrumbs ===== */
body[data-path="login"] .web-header,
body[data-path="login"] .navbar,
body[data-path="login"] .web-footer,
body[data-path="login"] .page-breadcrumbs {
	display: none !important;
}

/* ===== Remove default page padding/margins ===== */
body[data-path="login"] {
	background: #fff !important;
}

body[data-path="login"] .page-content-wrapper {
	min-height: 100vh;
	padding: 0 !important;
	margin: 0 !important;
}

/* ===== Two-column split wrapper ===== */
.st-login-wrapper {
	display: flex !important;
	flex-direction: row !important;
	min-height: 100vh;
	width: 100vw;
	margin: 0;
	padding: 0;
}

/* ===== Left column — form ===== */
.st-login-form-col {
	flex: 1 1 50%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 80px;
	background: #fff;
	overflow-y: auto;
}

/* ===== Right panel ===== */
.st-login-panel {
	flex: 1 1 50%;
	min-height: 100vh;
	background: linear-gradient(160deg, #EDF2FB 0%, #D6E4F7 40%, #C5D8F0 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 48px;
	position: relative;
	overflow: hidden;
}

/* Decorative floating bars */
.st-login-panel::before,
.st-login-panel::after {
	content: "";
	position: absolute;
	width: 6px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.5);
}

.st-login-panel::before {
	height: 120px;
	top: 20%;
	right: 15%;
	transform: rotate(15deg);
}

.st-login-panel::after {
	height: 80px;
	bottom: 25%;
	right: 25%;
	transform: rotate(15deg);
}

.st-panel-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 520px;
}

.st-panel-icon {
	width: 120px;
	height: 120px;
	margin: 0 auto 32px;
	background: linear-gradient(135deg, #B8D4F0 0%, #8BB8E8 100%);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(0, 82, 255, 0.12);
	transform: rotate(-5deg);
}

.st-panel-icon svg {
	width: 48px;
	height: 48px;
	color: #fff;
	transform: rotate(5deg);
}

.st-panel-content h2 {
	font-size: 26px;
	font-weight: 700;
	color: #0A2540;
	line-height: 1.3;
	margin-bottom: 12px;
}

.st-panel-content p {
	font-size: 14px;
	color: #5A6B7F;
	line-height: 1.7;
	margin-bottom: 0;
}

/* Extra floating bar decoration */
.st-float-bar {
	position: absolute;
	width: 5px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.4);
}

.st-float-bar:nth-child(2) {
	height: 60px;
	top: 35%;
	left: 12%;
	transform: rotate(15deg);
}

.st-float-bar:nth-child(3) {
	height: 100px;
	bottom: 15%;
	left: 20%;
	transform: rotate(15deg);
}

.st-float-bar:nth-child(4) {
	height: 40px;
	top: 55%;
	right: 10%;
	transform: rotate(15deg);
}

/* ===== Logo ===== */
.st-login-form-col .page-card-head {
	padding: 0 0 8px;
	text-align: center;
	width: 100%;
	max-width: 520px !important;
}

.st-login-form-col .page-card-head img.app-logo {
	max-height: 42px;
}

.st-login-form-col .page-card-head h4 {
	font-size: 26px;
	font-weight: 700;
	color: #0A2540;
	letter-spacing: -0.02em;
	margin-top: 24px;
	margin-bottom: 4px;
}

/* ===== Card — flat, no border ===== */
.st-login-form-col .page-card {
	max-width: 100% !important;
	width: 100% !important;
	padding: 20px 0 0;
	border-radius: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	margin: 0 auto;
}

.st-login-form-col .page-card form {
	max-width: 100% !important;
	width: 100% !important;
}

.st-login-form-col .page-card .page-card-body {
	max-width: 100% !important;
}

.st-login-form-col .form-control {
	width: 100% !important;
}

/* ===== Inputs ===== */
.st-login-form-col .page-card-body input[type="text"],
.st-login-form-col .page-card-body input[type="email"],
.st-login-form-col .page-card-body input[type="password"] {
	border: 1px solid #E3E8EE !important;
	border-radius: 10px !important;
	background: #fff !important;
	height: 48px !important;
	font-size: 14px !important;
	padding-left: 42px !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
	margin-bottom: 14px !important;
}

.st-login-form-col .page-card-body input:focus {
	border-color: #0052FF !important;
	box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1) !important;
	outline: none !important;
}

/* ===== Invalid ===== */
.st-login-form-col .page-card-body.invalid input[type="text"],
.st-login-form-col .page-card-body.invalid input[type="email"],
.st-login-form-col .page-card-body.invalid input[type="password"] {
	border-color: #e03636 !important;
	box-shadow: 0 0 0 3px rgba(224, 54, 54, 0.1) !important;
}

/* ===== Field icons ===== */
.st-login-form-col .field-icon {
	left: 14px !important;
	fill: #8792A2 !important;
}

.st-login-form-col .toggle-password {
	right: 14px !important;
	top: 14px !important;
	font-size: 12px !important;
	color: #8792A2 !important;
	font-weight: 500 !important;
}

.st-login-form-col .toggle-password:hover {
	color: #0052FF !important;
}

/* ===== Forgot password ===== */
.st-login-form-col .forgot-password-message {
	margin-top: -6px !important;
	margin-bottom: 6px !important;
}

.st-login-form-col .forgot-password-message a {
	color: #697386 !important;
	font-size: 13px !important;
	text-decoration: none !important;
}

.st-login-form-col .forgot-password-message a:hover {
	color: #0052FF !important;
}

/* ===== All primary buttons ===== */
.st-login-form-col .btn-primary,
.st-login-form-col .btn-login,
.st-login-form-col .btn-forgot,
.st-login-form-col .btn-login-with-email-link {
	height: 48px !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	background: #0052FF !important;
	border: none !important;
	color: #fff !important;
	box-shadow: none !important;
	transition: all 0.15s ease !important;
}

.st-login-form-col .btn-primary:hover,
.st-login-form-col .btn-login:hover,
.st-login-form-col .btn-forgot:hover,
.st-login-form-col .btn-login-with-email-link:hover {
	background: #0047DB !important;
	box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25) !important;
	transform: translateY(-1px);
}

.st-login-form-col .btn-primary:active,
.st-login-form-col .btn-login:active,
.st-login-form-col .btn-forgot:active,
.st-login-form-col .btn-login-with-email-link:active {
	transform: translateY(0);
}

/* ===== Secondary buttons ===== */
.st-login-form-col .btn-default:not(.btn-login-option) {
	height: 48px !important;
	border-radius: 10px !important;
	font-weight: 500 !important;
}

/* ===== Divider ===== */
.st-login-form-col .login-divider {
	color: #A3ACB9 !important;
	font-size: 13px !important;
	position: relative;
	margin: 22px 0 !important;
}

.st-login-form-col .login-divider::before,
.st-login-form-col .login-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 38%;
	height: 1px;
	background: #E3E8EE;
}

.st-login-form-col .login-divider::before { left: 0; }
.st-login-form-col .login-divider::after { right: 0; }

/* ===== Social buttons ===== */
.st-login-form-col .btn-login-option {
	height: 44px !important;
	border-radius: 10px !important;
	border: 1px solid #E3E8EE !important;
	background: #fff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #425466 !important;
	transition: all 0.15s ease !important;
}

.st-login-form-col .btn-login-option:hover {
	background: #F6F9FC !important;
	border-color: #D3D9E0 !important;
}

/* ===== Sign up / back to login ===== */
.st-login-form-col .sign-up-message {
	font-size: 13px !important;
	color: #697386 !important;
	margin-top: 16px !important;
}

.st-login-form-col .sign-up-message a {
	color: #0052FF !important;
	font-weight: 500 !important;
	text-decoration: none !important;
}

.st-login-form-col .sign-up-message a:hover {
	text-decoration: underline !important;
}

/* ===== Mobile — hide right panel, full width form ===== */
@media (max-width: 768px) {
	.st-login-wrapper {
		flex-direction: column !important;
	}

	.st-login-panel {
		display: none !important;
	}

	.st-login-form-col {
		flex: 1 1 100%;
		width: 100%;
		min-height: 100vh;
		padding: 32px 24px;
		background: linear-gradient(180deg, #F0F4FA 0%, #fff 30%);
	}

	.st-login-form-col .page-card {
		max-width: 100%;
	}
}

/* ===== Dark mode ===== */
[data-theme="dark"] body[data-path="login"] {
	background: #0d1117 !important;
}

[data-theme="dark"] .st-login-form-col {
	background: #0d1117;
}

[data-theme="dark"] .st-login-form-col .page-card-head h4 {
	color: #e6edf3;
}

[data-theme="dark"] .st-login-form-col .page-card-body input[type="text"],
[data-theme="dark"] .st-login-form-col .page-card-body input[type="email"],
[data-theme="dark"] .st-login-form-col .page-card-body input[type="password"] {
	background: #161b22 !important;
	border-color: #30363d !important;
	color: #e6edf3 !important;
}

[data-theme="dark"] .st-login-form-col .page-card-body input:focus {
	border-color: #0052FF !important;
	box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.2) !important;
}

[data-theme="dark"] .st-login-form-col .btn-login-option {
	background: #161b22 !important;
	border-color: #30363d !important;
	color: #e6edf3 !important;
}

[data-theme="dark"] .st-login-form-col .btn-login-option:hover {
	background: #1c2128 !important;
	border-color: #484f58 !important;
}

[data-theme="dark"] .st-login-panel {
	background: linear-gradient(160deg, #0d1117 0%, #141d2b 40%, #0d1930 100%);
}

[data-theme="dark"] .st-panel-icon {
	background: linear-gradient(135deg, #1a3050 0%, #0d2040 100%);
}

[data-theme="dark"] .st-panel-content h2 {
	color: #e6edf3;
}

[data-theme="dark"] .st-panel-content p {
	color: #8b949e;
}

[data-theme="dark"] .st-float-bar,
[data-theme="dark"] .st-login-panel::before,
[data-theme="dark"] .st-login-panel::after {
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
	[data-theme="dark"] .st-login-form-col {
		background: linear-gradient(180deg, #161b22 0%, #0d1117 30%);
	}
}

/* ============================================
   MODERN LOGIN ENHANCEMENTS + WEATHER
   ============================================ */

body[data-path="login"] {
	background: linear-gradient(180deg, #f6f2fb 0%, #ffffff 42%) !important;
}

.st-login-form-col {
	background: radial-gradient(circle at 12% 10%, rgba(161, 91, 255, 0.12) 0%, rgba(161, 91, 255, 0) 48%), #fff !important;
}

.st-login-panel {
	background: linear-gradient(160deg, #f0e8ff 0%, #d9c5ff 45%, #b99aff 100%) !important;
}

.st-panel-content {
	padding: 28px 24px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
}

.st-panel-icon {
	background: linear-gradient(135deg, #a15bff 0%, #6a1bb4 100%);
	box-shadow: 0 12px 30px rgba(90, 10, 168, 0.24);
}

.st-panel-content h2 {
	color: #4b0e8b;
}

.st-panel-content p {
	color: #5b4c73;
}

.st-login-form-col .page-card {
	border-radius: 18px;
	border: 1px solid #efe5fa;
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 16px 32px rgba(106, 27, 180, 0.08);
	padding: 22px 18px 14px;
}

.st-login-form-col .page-card-body input:focus {
	border-color: #6A1BB4 !important;
	box-shadow: 0 0 0 3px rgba(106, 27, 180, 0.16) !important;
}

.st-login-form-col .toggle-password:hover,
.st-login-form-col .sign-up-message a,
.st-login-form-col .forgot-password-message a:hover {
	color: #6A1BB4 !important;
}

.st-login-form-col .btn-primary,
.st-login-form-col .btn-login,
.st-login-form-col .btn-forgot,
.st-login-form-col .btn-login-with-email-link {
	background: linear-gradient(135deg, #6A1BB4 0%, #8E44E8 100%) !important;
}

.st-login-form-col .btn-primary:hover,
.st-login-form-col .btn-login:hover,
.st-login-form-col .btn-forgot:hover,
.st-login-form-col .btn-login-with-email-link:hover {
	background: linear-gradient(135deg, #5A0AA8 0%, #7A2DD6 100%) !important;
	box-shadow: 0 8px 18px rgba(90, 10, 168, 0.3) !important;
}

.st-weather-card {
	margin: 20px auto 0;
	width: 100%;
	max-width: 360px;
	border-radius: 14px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.62);
	box-shadow: 0 8px 18px rgba(90, 10, 168, 0.14);
	text-align: left;
}

.st-weather-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.st-weather-title {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #6a1bb4;
}

.st-weather-location {
	font-size: 11px;
	color: #695983;
}

.st-weather-main {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.st-weather-icon {
	font-size: 26px;
	line-height: 1;
	filter: drop-shadow(0 2px 6px rgba(75, 14, 139, 0.18));
}

.st-weather-temp {
	font-size: 30px;
	line-height: 1;
	font-weight: 800;
	color: #4b0e8b;
}

.st-weather-meta {
	display: grid;
	gap: 2px;
}

.st-weather-condition {
	font-size: 13px;
	font-weight: 600;
	color: #4b0e8b;
}

.st-weather-extra {
	font-size: 11px;
	color: #6b5c84;
}

.st-weather-loading {
	font-size: 12px;
	color: #7c6d96;
}

.st-weather-actions {
	margin-top: 8px;
}

.st-weather-retry {
	border: 0;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	color: #ffffff;
	background: linear-gradient(135deg, #6A1BB4 0%, #8E44E8 100%);
	box-shadow: 0 6px 14px rgba(90, 10, 168, 0.25);
}

.st-weather-retry:hover {
	background: linear-gradient(135deg, #5A0AA8 0%, #7A2DD6 100%);
}

.st-weather-card.is-approx {
	border-color: rgba(106, 27, 180, 0.45);
}

.st-weather-card.is-error {
	border-color: rgba(193, 63, 63, 0.45);
}

[data-theme="dark"] .st-panel-content {
	background: rgba(13, 17, 23, 0.35);
	border-color: rgba(110, 118, 129, 0.32);
}

[data-theme="dark"] .st-weather-card {
	background: rgba(13, 17, 23, 0.64);
	border-color: rgba(110, 118, 129, 0.34);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .st-weather-title,
[data-theme="dark"] .st-weather-condition,
[data-theme="dark"] .st-weather-temp {
	color: #dcb8ff;
}

[data-theme="dark"] .st-weather-location,
[data-theme="dark"] .st-weather-extra,
[data-theme="dark"] .st-weather-loading {
	color: #9aa6b5;
}

[data-theme="dark"] .st-weather-retry {
	background: linear-gradient(135deg, #8f52de 0%, #b985ff 100%);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
	.st-login-form-col {
		background: linear-gradient(180deg, #f4ecff 0%, #fff 30%) !important;
	}

	.st-panel-content {
		padding: 22px 16px;
		border-radius: 16px;
	}

	.st-weather-card {
		max-width: none;
	}

	[data-theme="dark"] .st-login-form-col {
		background: linear-gradient(180deg, #161b22 0%, #0d1117 30%) !important;
	}
}
