/* Hide Frappe chrome on the signup page */
body:has(.sk-signup) .navbar,
body:has(.sk-signup) footer,
body:has(.sk-signup) .page-header-wrapper,
body:has(.sk-signup) .web-footer,
body:has(.sk-signup) header {
	display: none !important;
}

body:has(.sk-signup) .page_content,
body:has(.sk-signup) .container,
body:has(.sk-signup) .page-container,
body:has(.sk-signup) .main-section {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body:has(.sk-signup) {
	background: #f2f6fc !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* ==========================================================================
   SKANDA Signup Page Styles
   ========================================================================== */

.sk-signup {
	display: flex;
	min-height: 100vh;
	width: 100%;
	font-family: -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
	color: #0e1424;
	background: #f2f6fc;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.sk-signup *,
.sk-signup *::before,
.sk-signup *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Left Panel: Brand & Benefits
   -------------------------------------------------------------------------- */

.sk-signup .sk-signup-left {
	flex: 0 0 42%;
	width: 42%;
	min-height: 100vh;
	background: linear-gradient(145deg, #0b1530 0%, #12306b 100%);
	position: relative;
	overflow: hidden;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px 56px;
}

/* Soft ambient blue glow */
.sk-signup .sk-signup-left::before {
	content: "";
	position: absolute;
	top: -100px;
	left: -100px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(10, 132, 255, 0.28) 0%, transparent 70%);
	pointer-events: none;
}

.sk-signup .sk-signup-left::after {
	content: "";
	position: absolute;
	bottom: -80px;
	right: -80px;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, rgba(10, 132, 255, 0.2) 0%, transparent 70%);
	pointer-events: none;
}

.sk-signup .sk-left-content {
	position: relative;
	z-index: 1;
	max-width: 460px;
}

.sk-signup .sk-brand-logo {
	/* white + blue SKANDA logo on a transparent background, made for the navy panel */
	width: 210px;
	max-width: 70%;
	height: auto;
	display: block;
	margin-bottom: 40px;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.sk-signup .sk-brand-headline {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	color: #ffffff;
	margin: 0 0 36px 0;
	letter-spacing: -0.02em;
}

.sk-signup .sk-benefit-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sk-signup .sk-benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	font-size: 15px;
	color: #dbe7fc;
	line-height: 1.45;
}

.sk-signup .sk-check-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: #38bdf8;
	margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Right Panel: Centered Card
   -------------------------------------------------------------------------- */

.sk-signup .sk-signup-right {
	flex: 1;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background: #f2f6fc;
}

.sk-signup .sk-signup-card {
	width: 100%;
	max-width: 440px;
	background: #ffffff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 10px 32px rgba(14, 20, 36, 0.08), 0 1px 4px rgba(14, 20, 36, 0.04);
	border: 1px solid #e8eef7;
}

/* --------------------------------------------------------------------------
   Step Indicator
   -------------------------------------------------------------------------- */

.sk-signup .sk-step-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #8a94a6;
	margin-bottom: 24px;
	user-select: none;
}

.sk-signup .sk-step-pill {
	color: #8a94a6;
	transition: color 0.15s ease;
}

.sk-signup .sk-step-pill.active {
	color: #0a84ff;
	font-weight: 600;
}

.sk-signup .sk-step-pill.completed {
	color: #10b981;
	font-weight: 500;
}

.sk-signup .sk-step-dot {
	color: #cbd5e1;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Typography & Headers
   -------------------------------------------------------------------------- */

.sk-signup .sk-panel-title {
	font-size: 22px;
	font-weight: 700;
	color: #0e1424;
	margin: 0 0 6px 0;
	letter-spacing: -0.01em;
}

.sk-signup .sk-panel-subtitle {
	font-size: 14px;
	color: #5b6275;
	margin: 0 0 20px 0;
	line-height: 1.45;
}

.sk-signup .sk-text-center {
	text-align: center;
}

/* --------------------------------------------------------------------------
   Form Fields & Inputs
   -------------------------------------------------------------------------- */

.sk-signup .sk-form-group {
	margin-bottom: 16px;
}

.sk-signup .sk-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #2b3345;
	margin-bottom: 6px;
}

.sk-signup .sk-label-hint {
	font-weight: 400;
	color: #8a94a6;
	font-size: 12px;
}

.sk-signup input[type="text"],
.sk-signup input[type="email"],
.sk-signup input[type="tel"],
.sk-signup input[type="password"] {
	width: 100%;
	height: 44px;
	border-radius: 12px;
	border: 1px solid #dbe3f0;
	padding: 0 14px;
	font-size: 14px;
	color: #0e1424;
	background: #ffffff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
}

.sk-signup input:focus {
	border-color: #0a84ff;
	box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.sk-signup input::placeholder {
	color: #a0aec0;
}

/* Password wrapper with show/hide toggle */
.sk-signup .sk-password-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.sk-signup .sk-password-wrap input {
	padding-right: 44px;
}

.sk-signup .sk-pwd-toggle {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #718096;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
}

.sk-signup .sk-pwd-toggle:hover {
	color: #1a202c;
}

.sk-signup .sk-pwd-toggle:focus {
	outline: none;
	color: #0a84ff;
}

.sk-signup .sk-eye-icon {
	width: 18px;
	height: 18px;
}

.sk-signup .sk-field-hint {
	font-size: 12px;
	color: #718096;
	margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Error & Status Boxes
   -------------------------------------------------------------------------- */

.sk-signup .sk-error-box {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	margin-bottom: 16px;
	line-height: 1.45;
}

.sk-signup .sk-status-msg {
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13.5px;
	margin-bottom: 16px;
	line-height: 1.45;
	text-align: center;
}

.sk-signup .sk-status-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #047857;
}

/* --------------------------------------------------------------------------
   Buttons & Links
   -------------------------------------------------------------------------- */

.sk-signup .sk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.05s ease;
	font-family: inherit;
	text-decoration: none;
}

.sk-signup .sk-btn-primary {
	background: #0a84ff;
	color: #ffffff;
}

.sk-signup .sk-btn-primary:hover:not(:disabled) {
	background: #0866cc;
}

.sk-signup .sk-btn-primary:active:not(:disabled) {
	transform: scale(0.99);
}

.sk-signup .sk-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.sk-signup .sk-link-btn {
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: #0a84ff;
	cursor: pointer;
	font-family: inherit;
}

.sk-signup .sk-link-btn:hover:not(:disabled) {
	text-decoration: underline;
}

.sk-signup .sk-link-btn:disabled {
	color: #94a3b8;
	cursor: not-allowed;
	text-decoration: none;
}

.sk-signup .sk-link-sep {
	color: #cbd5e1;
	margin: 0 8px;
}

.sk-signup .sk-card-signin {
	text-align: center;
	font-size: 13.5px;
	color: #5b6275;
	margin-top: 18px;
}

.sk-signup .sk-card-signin a {
	color: #0a84ff;
	text-decoration: none;
	font-weight: 600;
}

.sk-signup .sk-card-signin a:hover {
	text-decoration: underline;
}

.sk-signup .sk-terms-notice {
	font-size: 12px;
	color: #8a94a6;
	text-align: center;
	margin: 14px 0 0 0;
}

/* --------------------------------------------------------------------------
   OTP 6-digit grid
   -------------------------------------------------------------------------- */

.sk-signup .sk-otp-container {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 20px;
}

.sk-signup .sk-otp-input {
	width: 50px;
	height: 52px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	border-radius: 12px;
	border: 1px solid #dbe3f0;
	color: #0e1424;
	background: #ffffff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-family: inherit;
	padding: 0;
}

.sk-signup .sk-otp-input:focus {
	border-color: #0a84ff;
	box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.sk-signup .sk-step-links {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Step 3: Setting up Views
   -------------------------------------------------------------------------- */

.sk-signup .sk-spinner-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px 0 24px;
}

.sk-signup .sk-pulse-ring {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 4px solid rgba(10, 132, 255, 0.15);
	border-top-color: #0a84ff;
	animation: sk-spin 1s linear infinite, sk-pulse 2s ease-in-out infinite;
}

@keyframes sk-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes sk-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.4);
	}
	50% {
		box-shadow: 0 0 0 12px rgba(10, 132, 255, 0);
	}
}

.sk-signup .sk-progress-text {
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #0a84ff;
	margin-bottom: 12px;
}

.sk-signup .sk-progress-bar-container {
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 20px;
}

.sk-signup .sk-progress-bar-fill {
	width: 40%;
	height: 100%;
	background: #0a84ff;
	border-radius: 999px;
	animation: sk-bar-slide 1.8s ease-in-out infinite;
}

@keyframes sk-bar-slide {
	0% {
		transform: translateX(-100%);
	}
	50% {
		transform: translateX(120%);
	}
	100% {
		transform: translateX(300%);
	}
}

.sk-signup .sk-setup-note {
	font-size: 13.5px;
	color: #5b6275;
	text-align: center;
	line-height: 1.5;
	margin: 0;
	background: #f8fafc;
	border: 1px solid #edf2f7;
	border-radius: 12px;
	padding: 12px 14px;
}

/* Success & Failure States */
.sk-signup .sk-success-icon-wrap {
	display: flex;
	justify-content: center;
	margin: 10px 0 18px;
}

.sk-signup .sk-success-svg {
	width: 56px;
	height: 56px;
	color: #10b981;
}

.sk-signup .sk-fail-icon-wrap {
	display: flex;
	justify-content: center;
	margin: 10px 0 18px;
}

.sk-signup .sk-fail-svg {
	width: 56px;
	height: 56px;
	color: #ef4444;
}

.sk-signup .sk-fail-desc {
	font-size: 14px;
	color: #5b6275;
	text-align: center;
	line-height: 1.5;
	margin: 0 0 20px 0;
}

.sk-signup .sk-address-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 22px;
}

.sk-signup .sk-address-label {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 6px;
}

.sk-signup .sk-address-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sk-signup .sk-address-url {
	font-size: 15px;
	font-weight: 600;
	color: #0e1424;
	word-break: break-all;
	user-select: all;
}

.sk-signup .sk-btn-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	flex-shrink: 0;
	font-family: inherit;
	transition: background-color 0.15s, border-color 0.15s;
}

.sk-signup .sk-btn-copy:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.sk-signup .sk-copy-icon {
	width: 14px;
	height: 14px;
}

/* --------------------------------------------------------------------------
   Mobile responsive (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.sk-signup {
		flex-direction: column;
		min-height: 100vh;
	}

	.sk-signup .sk-signup-left {
		flex: none;
		width: 100%;
		min-height: auto;
		padding: 28px 20px 24px;
		align-items: center;
		text-align: center;
	}

	.sk-signup .sk-left-content {
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.sk-signup .sk-brand-logo {
		width: 150px;
		margin-bottom: 16px;
	}

	.sk-signup .sk-brand-headline {
		font-size: 20px;
		margin: 0;
		line-height: 1.3;
	}

	.sk-signup .sk-benefit-list {
		display: none;
	}

	.sk-signup .sk-signup-right {
		min-height: auto;
		padding: 20px 16px 40px;
		align-items: flex-start;
	}

	.sk-signup .sk-signup-card {
		padding: 24px 18px;
		border-radius: 16px;
	}

	.sk-signup .sk-otp-input {
		width: 44px;
		height: 48px;
		font-size: 20px;
	}
}

/* Mobile number: country code dropdown + number */
.sk-signup .sk-phone-wrap {
	display: flex;
	gap: 8px;
}
.sk-signup .sk-phone-wrap select {
	flex: 0 0 132px;
	width: 132px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid #dbe3f0;
	padding: 0 30px 0 12px;
	font-size: 14px;
	color: #0e1424;
	font-family: inherit;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6275' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
	appearance: none;
	-webkit-appearance: none;
	text-overflow: ellipsis;
	cursor: pointer;
	outline: none;
}
.sk-signup .sk-phone-wrap select:focus {
	border-color: #0a84ff;
	box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}
.sk-signup .sk-phone-wrap input {
	flex: 1;
	min-width: 0;
}
