/* ============================================================
   RCN Login / Register page — premium redesign v3
   ============================================================ */

.rcn-login-page {
	background: #f8fafc;
	padding-bottom: 80px;
	min-height: 100vh;
}

/* === Hero === */
.rcn-login-hero {
	position: relative;
	background:
		radial-gradient(ellipse 600px 400px at 20% 100%, rgba(220, 38, 38, 0.22) 0%, transparent 60%),
		radial-gradient(ellipse 800px 500px at 80% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 65%),
		linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
	padding: 48px 0 64px;
	margin-bottom: -40px;
	overflow: hidden;
}
.rcn-login-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
	opacity: 0.5;
}
.rcn-login-hero > * { position: relative; z-index: 1; }

.rcn-login-hero .rcn-breadcrumb,
.rcn-login-hero .rcn-breadcrumb a,
.rcn-login-hero .rcn-breadcrumb [aria-current="page"] {
	color: rgba(255,255,255,.65) !important;
	font-size: 13px;
}
.rcn-login-hero .rcn-breadcrumb a:hover { color: #fff !important; }

body.rcn-theme .rcn-login-hero__title {
	font-size: clamp(28px, 4.5vw, 42px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 0 12px !important;
	letter-spacing: -.025em;
	line-height: 1.1;
}
.rcn-login-hero__title span {
	background: linear-gradient(135deg, #ef4444 0%, #fbbf24 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	display: inline-block;
}
.rcn-login-hero__subtitle {
	color: rgba(255,255,255,.78);
	font-size: 16px;
	margin: 0 0 24px;
	max-width: 640px;
	line-height: 1.55;
}

/* Pre-form badges */
.rcn-login-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}
.rcn-login-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.85);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(8px);
}
.rcn-login-hero__badge svg { color: #fbbf24; flex-shrink: 0; }

/* === Tabs (mobile only) === */
.rcn-login-tabs {
	display: none;
	gap: 8px;
	margin: 0 auto 24px;
	max-width: 480px;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 6px;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(15,23,42,.06);
}
.rcn-login-tab {
	flex: 1;
	background: transparent;
	border: none;
	padding: 11px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	color: #6b7280;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all .18s;
	font-family: inherit;
}
.rcn-login-tab.active {
	background: linear-gradient(135deg, #dc2626, #b91c1c);
	color: #fff;
	box-shadow: 0 6px 18px rgba(220,38,38,.32);
}

/* === Two-column grid === */
.rcn-login-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	max-width: 1080px;
	margin: 0 auto;
}
.rcn-login-grid--single { grid-template-columns: minmax(0, 520px); justify-content: center; }

.rcn-login-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	padding: 36px 36px 30px;
	box-shadow: 0 14px 40px rgba(15,23,42,.08);
	position: relative;
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.rcn-login-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 50px rgba(15,23,42,.10);
}
.rcn-login-card::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #dc2626, #b91c1c);
}
.rcn-login-card:nth-child(2)::before {
	background: linear-gradient(90deg, #f59e0b, #d97706);
}

.rcn-login-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}
.rcn-login-card__icon-box {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	color: #dc2626;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: inset 0 0 0 1px rgba(220,38,38,.12);
}
.rcn-login-card:nth-child(2) .rcn-login-card__icon-box {
	background: linear-gradient(135deg, #fffbeb, #fef3c7);
	color: #d97706;
	box-shadow: inset 0 0 0 1px rgba(245,158,11,.18);
}
body.rcn-theme .rcn-login-card__title {
	font-size: 21px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin: 0 !important;
	letter-spacing: -.015em;
	line-height: 1.2;
}
.rcn-login-card__sub {
	color: #64748b;
	font-size: 13.5px;
	margin: 4px 0 0;
	line-height: 1.5;
}

/* === Google OAuth button === */
body.rcn-theme .rcn-login-google,
.rcn-login-google {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 12px 18px !important;
	background: #fff !important;
	color: #3c4043 !important;
	border: 1.5px solid #dadce0 !important;
	border-radius: 10px !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: all .15s !important;
	font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, Arial, sans-serif !important;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}
body.rcn-theme .rcn-login-google:hover,
.rcn-login-google:hover {
	background: #f8fafc !important;
	border-color: #c5c8cc !important;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
	transform: translateY(-1px) !important;
	color: #3c4043 !important;
}
.rcn-login-google svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.rcn-login-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 20px 0;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.rcn-login-divider::before,
.rcn-login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

/* === Form === */
.rcn-login-form { display: flex; flex-direction: column; gap: 16px; }
.rcn-login-form .rcn-form-row { display: flex; flex-direction: column; gap: 6px; }
.rcn-login-form .rcn-label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	letter-spacing: 0.01em;
}
.rcn-login-form .rcn-label small {
	color: #94a3b8;
	font-weight: 500;
	margin-left: 4px;
}
.rcn-login-form .rcn-label-required::after {
	content: " *";
	color: #dc2626;
}

.rcn-login-form .rcn-input {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14.5px;
	color: #0f172a;
	font-family: inherit;
	background: #fff;
	transition: all .18s;
	box-sizing: border-box;
}
.rcn-login-form .rcn-input::placeholder { color: #94a3b8; }
.rcn-login-form .rcn-input:hover { border-color: #cbd5e1; }
.rcn-login-form .rcn-input:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220,38,38,.10);
	outline: none;
}
.rcn-login-form .rcn-form-hint {
	color: #94a3b8;
	font-size: 11.5px;
	margin-top: 2px;
}

.rcn-login-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: -2px;
}
.rcn-checkbox--inline { font-size: 13.5px; color: #475569 !important; padding: 0 !important; }

/* Forgot password / inline text link */
.rcn-login-link {
	color: #dc2626 !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	font-family: inherit !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	text-transform: none !important;
	display: inline !important;
	transition: color .15s !important;
}
.rcn-login-link:hover {
	color: #b91c1c !important;
	text-decoration: underline !important;
	background: transparent !important;
	transform: none !important;
}

/* === Password toggle === */
.rcn-pwd-row { position: relative; }
.rcn-pwd-row .rcn-input { padding-right: 46px; }
body.rcn-theme .rcn-pwd-toggle,
.rcn-pwd-toggle {
	position: absolute !important;
	right: 8px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	background: transparent !important;
	border: none !important;
	color: #94a3b8 !important;
	cursor: pointer !important;
	padding: 8px !important;
	border-radius: 6px !important;
	transition: all .15s !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
}
body.rcn-theme .rcn-pwd-toggle:hover,
.rcn-pwd-toggle:hover {
	color: #dc2626 !important;
	background: #fef2f2 !important;
}

/* === Password strength === */
.rcn-pwd-strength { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.rcn-pwd-strength__bar { height: 5px; border-radius: 3px; background: #e5e7eb; flex: 1; max-width: 70%; transition: width .25s, background .25s; }
.rcn-pwd-strength__bar.is-weak   { background: #ef4444; }
.rcn-pwd-strength__bar.is-fair   { background: #f59e0b; }
.rcn-pwd-strength__bar.is-good   { background: #84cc16; }
.rcn-pwd-strength__bar.is-strong { background: #10b981; }
.rcn-pwd-strength__label { font-size: 11.5px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; }

/* === Errors / success === */
.rcn-login-error {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	border: 1px solid #fecaca;
	border-left: 3px solid #dc2626;
	border-radius: 10px;
	color: #b91c1c;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
}
.rcn-login-success {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(135deg, #ecfdf5, #d1fae5);
	border: 1px solid #a7f3d0;
	border-left: 3px solid #10b981;
	border-radius: 10px;
	color: #065f46;
	font-size: 13.5px;
	font-weight: 600;
}

/* === Footer link — HIDDEN on desktop (redundant when both cards visible) === */
.rcn-login-foot {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
	font-size: 13.5px;
	color: #64748b;
	text-align: center;
	display: none; /* hidden on desktop — only shown on mobile via media query */
}
.rcn-login-foot .rcn-login-link { margin-left: 4px; }

/* === Submit button === */
body.rcn-theme .rcn-login-form .rcn-btn,
.rcn-login-form .rcn-btn {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	border-radius: 10px !important;
	transition: all .2s !important;
}
body.rcn-theme .rcn-login-form .rcn-btn-primary {
	background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
	border: none !important;
	box-shadow: 0 8px 22px rgba(220,38,38,.35) !important;
}
body.rcn-theme .rcn-login-form .rcn-btn-primary:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 12px 28px rgba(220,38,38,.45) !important;
}
body.rcn-theme .rcn-login-form .rcn-btn-primary:disabled {
	opacity: .6 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* === Trust strip === */
.rcn-login-trust {
	margin-top: 48px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}
.rcn-login-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	transition: all .2s;
}
.rcn-login-trust__item:hover {
	transform: translateY(-2px);
	border-color: #dc2626;
	box-shadow: 0 8px 22px rgba(220,38,38,.10);
}
.rcn-login-trust__item-icon {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fef2f2, #fee2e2);
	color: #dc2626;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.rcn-login-trust__item:nth-child(2) .rcn-login-trust__item-icon { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.rcn-login-trust__item:nth-child(3) .rcn-login-trust__item-icon { background: linear-gradient(135deg, #fffbeb, #fef3c7); color: #d97706; }
.rcn-login-trust__item:nth-child(4) .rcn-login-trust__item-icon { background: linear-gradient(135deg, #eff6ff, #dbeafe); color: #2563eb; }
.rcn-login-trust__item strong {
	display: block;
	color: #0f172a;
	font-weight: 800;
	font-size: 13.5px;
	letter-spacing: -0.01em;
}
.rcn-login-trust__item small {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	margin-top: 2px;
	display: block;
	line-height: 1.4;
}

/* === FIX: label.rcn-checkbox (inherited 18px from components.css) === */
body.rcn-theme label.rcn-checkbox,
label.rcn-checkbox {
	display: inline-flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	width: auto !important;
	height: auto !important;
	cursor: pointer !important;
	font-size: 13.5px !important;
	line-height: 1.55 !important;
	color: #475569 !important;
	font-weight: 500 !important;
	padding: 4px 0 !important;
}
body.rcn-theme label.rcn-checkbox input[type="checkbox"],
label.rcn-checkbox input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	margin: 1px 0 0 0 !important;
	accent-color: #dc2626 !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
}
body.rcn-theme label.rcn-checkbox span,
label.rcn-checkbox span {
	display: inline !important;
	flex: 1 !important;
	line-height: 1.55 !important;
}
body.rcn-theme label.rcn-checkbox a,
label.rcn-checkbox a {
	color: #dc2626 !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}
body.rcn-theme label.rcn-checkbox a:hover,
label.rcn-checkbox a:hover { text-decoration: underline !important; }

/* === Responsive === */
@media ( max-width: 880px ) {
	.rcn-login-trust { grid-template-columns: repeat(2, 1fr); }
}
@media ( max-width: 768px ) {
	.rcn-login-tabs { display: flex; }
	.rcn-login-grid { grid-template-columns: 1fr; gap: 0; }
	.rcn-login-card { display: none; }
	.rcn-login-card.active { display: block; }
	.rcn-login-trust { grid-template-columns: 1fr; }
	.rcn-login-hero { padding: 36px 0 56px; margin-bottom: -32px; }
	body.rcn-theme .rcn-login-hero__title { font-size: 26px !important; }
	.rcn-login-hero__subtitle { font-size: 14.5px; }
	.rcn-login-card { padding: 28px 24px 24px; }
	.rcn-login-card__head { gap: 12px; margin-bottom: 18px; }
	.rcn-login-card__icon-box { width: 42px; height: 42px; }
	/* On mobile show the switcher text link */
	.rcn-login-foot { display: block; }
}
