/* Registration.css - Modern Dark Mode Design - Mobile Responsive */

/* Reset and base styles */
* {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Main container */
.registration-container {
	min-height: 100vh;
	width: 100%;
	background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
	color: #ffffff;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	padding: 2rem 1rem;
	position: relative;
	overflow-x: hidden;
}

	.registration-container::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: radial-gradient(circle at 20% 80%, #3b82f6 0%, transparent 50%), radial-gradient(circle at 80% 20%, #10b981 0%, transparent 50%);
		opacity: 0.1;
		pointer-events: none;
	}

/* Header section */
.registration-header {
	text-align: center;
	margin-bottom: 3rem;
	position: relative;
	z-index: 1;
	padding: 0 1rem;
}

.header-content {
	max-width: 600px;
	margin: 0 auto;
}

.main-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	background: linear-gradient(135deg, #3b82f6, #10b981);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 1rem;
	line-height: 1.2;
	word-wrap: break-word;
}

.subtitle {
	font-size: clamp(1rem, 3vw, 1.2rem);
	color: #9ca3af;
	margin: 0;
	font-weight: 300;
}

/* Section cards */
.verification-section,
.registration-form-section {
	width: 100%;
	max-width: 500px;
	margin: 0 auto 2rem auto;
	position: relative;
	z-index: 1;
	padding: 0 1rem;
}

.section-card {
	background: rgba(30, 41, 59, 0.95);
	backdrop-filter: blur(25px);
	border-radius: 24px;
	padding: 2.5rem;
	border: 1px solid rgba(59, 130, 246, 0.25);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	position: relative;
	transition: all 0.3s ease;
	width: 100%;
	overflow: visible;
}

	.section-card::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background: linear-gradient(90deg, transparent, #3b82f6, transparent);
	}

	.section-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 35px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
	}

/* Section headers */
.section-header {
	text-align: center;
	margin-bottom: 2rem;
}

.step-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #1e40af);
	margin-bottom: 1.5rem;
	position: relative;
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

	.step-indicator.success {
		background: linear-gradient(135deg, #10b981, #047857);
		box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
	}

.step-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
}

.section-title {
	font-size: clamp(1.3rem, 4vw, 1.8rem);
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 0.5rem;
}

.section-description {
	font-size: clamp(0.9rem, 2.5vw, 1rem);
	color: #9ca3af;
	margin: 0;
	line-height: 1.5;
}

/* Form content */
.form-content {
	position: relative;
	width: 100%;
}

.original-form-container {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	position: relative;
}

/* Input wrappers and styling */
.input-wrapper {
	position: relative;
	margin-bottom: 1.75rem;
	width: 100%;
}

.input-helper {
	display: inline-block;
	font-size: 0.85rem;
	color: #ffffff;
	margin-top: 0.75rem;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	background: linear-gradient(135deg, #10b981, #047857);
	padding: 0.4rem 0.8rem;
	border-radius: 8px;
	border: 1px solid rgba(16, 185, 129, 0.8);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Neumorphic Custom input styling */
.custom-input {
	position: relative;
	width: 100%;
}

	.custom-input input,
	.custom-input .dx-texteditor-input {
		background: #2d3748 !important;
		border: none !important;
		border-radius: 14px !important;
		color: #e2e8f0 !important;
		font-size: 1rem !important;
		padding: 1.25rem 1.5rem !important;
		transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		width: 100% !important;
		height: auto !important;
		min-height: 56px !important;
		box-sizing: border-box !important;
		font-weight: 400 !important;
		line-height: 1.4 !important;
		/* Neumorphic pressed/inset effect */
		box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.6), inset -3px -3px 8px rgba(255, 255, 255, 0.02), 2px 2px 6px rgba(0, 0, 0, 0.4) !important;
		outline: none !important;
	}

		.custom-input input:focus,
		.custom-input .dx-texteditor-input:focus,
		.custom-input.dx-state-focused input,
		.custom-input.dx-state-focused .dx-texteditor-input {
			/* Enhanced inset effect on focus */
			box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.8), inset -4px -4px 12px rgba(255, 255, 255, 0.03), 0 0 15px rgba(59, 130, 246, 0.3) !important;
			background: #334155 !important;
			transform: none !important;
		}

		.custom-input input::placeholder,
		.custom-input .dx-texteditor-input::placeholder {
			color: #a0aec0 !important;
			font-weight: 300 !important;
			opacity: 0.8 !important;
		}

		.custom-input input:hover,
		.custom-input .dx-texteditor-input:hover {
			/* Slightly less pressed effect on hover */
			box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(255, 255, 255, 0.02), 3px 3px 8px rgba(0, 0, 0, 0.3) !important;
		}

/* Enhanced readonly input styling with stronger green */
.readonly-input input,
.readonly-input .dx-texteditor-input {
	background: #1a5a3e !important;
	border: 2px solid #10b981 !important;
	cursor: not-allowed !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 8px rgba(16, 185, 129, 0.1), 0 0 15px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(16, 185, 129, 0.2) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.readonly-input:hover input,
.readonly-input:hover .dx-texteditor-input {
	transform: none !important;
	box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.4), inset -2px -2px 8px rgba(16, 185, 129, 0.1), 0 0 15px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

/* Neumorphic Button styling */
.primary-button,
.submit-button {
	width: 100% !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 14px !important;
	background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
	color: white !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	height: 56px !important;
	cursor: pointer !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative !important;
	overflow: hidden !important;
	box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4), -3px -3px 8px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
	box-sizing: border-box !important;
}

	.primary-button:hover,
	.submit-button:hover,
	.primary-button.dx-state-hover,
	.submit-button.dx-state-hover {
		transform: translateY(-2px) !important;
		box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5) !important, -2px -2px 6px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
		background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
	}

	.primary-button:active,
	.submit-button:active {
		/* Pressed button effect */
		box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.6), inset -2px -2px 6px rgba(255, 255, 255, 0.05) !important;
		transform: translateY(0px) !important;
	}

.button-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 100%;
	font-weight: 600;
}

/* Enhanced Error and validation messages */
.error-message {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: rgba(239, 68, 68, 0.2) !important;
	border: 1px solid rgba(239, 68, 68, 0.5) !important;
	border-radius: 12px !important;
	padding: 1.25rem !important;
	margin-top: 1rem !important;
	font-size: 0.9rem !important;
	color: #fecaca !important;
	width: 100% !important;
	box-sizing: border-box !important;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

.error-icon {
	font-size: 1.2rem;
	color: #f87171;
	flex-shrink: 0;
}

.validation-error {
	margin-top: 0.75rem;
	width: 100%;
}

.validation-summary {
	background: rgba(239, 68, 68, 0.2) !important;
	border: 1px solid rgba(239, 68, 68, 0.5) !important;
	border-radius: 16px !important;
	padding: 1.5rem !important;
	margin-top: 1.5rem !important;
	color: #fecaca !important;
	width: 100% !important;
	box-sizing: border-box !important;
	box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.3), 0 6px 16px rgba(239, 68, 68, 0.2) !important;
}

	.validation-summary ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.validation-summary li {
		padding: 0.5rem 0;
		font-size: 0.9rem;
	}

/* Enhanced Card header and body styling */
.card-header {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.2)) !important;
	border: 1px solid rgba(59, 130, 246, 0.4) !important;
	border-radius: 16px 16px 0 0 !important;
	padding: 1.5rem !important;
	margin-bottom: 0 !important;
	color: #e5e7eb !important;
	width: 100% !important;
	box-sizing: border-box !important;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
	background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8)) !important;
	border: 1px solid rgba(59, 130, 246, 0.4) !important;
	border-top: none !important;
	border-radius: 0 0 16px 16px !important;
	padding: 2.5rem !important;
	width: 100% !important;
	box-sizing: border-box !important;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Text utilities */
.text-center {
	text-align: center;
}

.py-3 {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.tm-8 {
	margin-top: 2rem;
}

.mb-0 {
	margin-bottom: 0;
}

.fw-normal {
	font-weight: 400;
}

.fs-825 {
	font-size: 0.925rem;
}

.mt-1 {
	margin-top: 0.25rem;
}

.mt-3 {
	margin-top: 1rem;
}

.d-none {
	display: none;
}

.w-100 {
	width: 100%;
}

/* Enhanced Alert styling */
.alert {
	padding: 1.5rem;
	border-radius: 16px;
	font-weight: 500;
	width: 100%;
	box-sizing: border-box;
	box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.alert-success {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2)) !important;
	border: 1px solid rgba(16, 185, 129, 0.5) !important;
	color: #a7f3d0 !important;
}

.alert-danger {
	background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2)) !important;
	border: 1px solid rgba(239, 68, 68, 0.5) !important;
	color: #fecaca !important;
}

/* Enhanced Form result messages */
.form-result {
	text-align: center;
	width: 100%;
	border-radius: 16px;
}

.result-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.result-icon {
	font-size: 1.3rem;
	flex-shrink: 0;
}

/* Enhanced Text danger for validation */
.text-danger {
	color: #fecaca !important;
	font-size: 0.9rem !important;
	font-weight: 500 !important;
}

/* Original form container responsive override */
.original-form-container {
	width: 400px !important;
	margin: 0 auto !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.registration-container {
		padding: 1rem 0.5rem;
	}

	.section-card {
		padding: 1.5rem;
		border-radius: 20px;
		margin: 0;
	}

	.step-indicator {
		width: 50px;
		height: 50px;
	}

	.step-number {
		font-size: 1.2rem;
	}

	.card-body {
		padding: 2rem !important;
	}

	/* Make original form container responsive on tablets */
	.original-form-container {
		width: 100% !important;
		max-width: 400px !important;
		margin: 0 auto !important;
		padding: 0 !important;
	}

	.verification-section,
	.registration-form-section {
		padding: 0 0.5rem;
	}

	.custom-input input,
	.custom-input .dx-texteditor-input {
		min-height: 52px !important;
		padding: 1rem 1.25rem !important;
		border-radius: 12px !important;
	}

	.primary-button,
	.submit-button {
		height: 52px !important;
		border-radius: 12px !important;
	}
}

@media (max-width: 480px) {
	.registration-container {
		padding: 0.5rem 0.25rem;
	}

	.section-card {
		padding: 1rem;
		margin: 0;
		border-radius: 18px;
	}

	.custom-input input,
	.custom-input .dx-texteditor-input {
		font-size: 0.9rem !important;
		padding: 1rem 1.25rem !important;
		min-height: 50px !important;
		border-radius: 12px !important;
	}

	.primary-button,
	.submit-button {
		height: 50px !important;
		font-size: 0.9rem !important;
		border-radius: 12px !important;
	}

	.card-body {
		padding: 1.5rem !important;
	}

	/* Make original form container fully responsive on mobile */
	.original-form-container {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.verification-section,
	.registration-form-section {
		padding: 0 0.25rem;
	}

	.registration-header {
		padding: 0 0.5rem;
		margin-bottom: 2rem;
	}

	.input-helper {
		font-size: 0.8rem;
		padding: 0.3rem 0.6rem;
	}
}

@media (max-width: 360px) {
	.registration-container {
		padding: 0.25rem;
	}

	.section-card {
		padding: 0.75rem;
		border-radius: 16px;
	}

	.step-indicator {
		width: 45px;
		height: 45px;
	}

	.step-number {
		font-size: 1rem;
	}

	.custom-input input,
	.custom-input .dx-texteditor-input {
		font-size: 0.85rem !important;
		padding: 0.875rem 1rem !important;
		min-height: 48px !important;
		border-radius: 10px !important;
	}

	.primary-button,
	.submit-button {
		height: 48px !important;
		font-size: 0.85rem !important;
		border-radius: 10px !important;
	}

	.card-body {
		padding: 1rem !important;
	}

	.card-header {
		padding: 1rem !important;
		border-radius: 12px 12px 0 0 !important;
	}

	.verification-section,
	.registration-form-section {
		padding: 0 0.125rem;
	}

	.registration-header {
		padding: 0 0.25rem;
		margin-bottom: 1.5rem;
	}

	.button-content {
		font-size: 0.8rem;
	}

	.error-message {
		font-size: 0.8rem;
		padding: 1rem;
		border-radius: 10px;
	}
}

/* DevExpress component overrides */
.dx-theme-material .dx-texteditor.dx-editor-filled,
.dx-theme-material .dx-texteditor.dx-editor-outlined {
	background: transparent !important;
}

.dx-theme-material .dx-button {
	border: none !important;
}

.dx-theme-material .dx-button-content {
	padding: 0 !important;
}

/* Neumorphic Focus and hover states */
.custom-input:focus-within {
	/* No transform needed for neumorphic style */
}

.section-card:focus-within {
	border-color: rgba(59, 130, 246, 0.6);
}

/* Enhanced Animation for smooth transitions */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.section-card {
	animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading states */
.primary-button:disabled,
.submit-button:disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.6), inset -2px -2px 6px rgba(255, 255, 255, 0.02) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.section-card {
		border-width: 2px;
	}

	.custom-input input,
	.custom-input .dx-texteditor-input {
		border-width: 2px !important;
	}
}

/* Prevent horizontal scroll on all screen sizes */
.registration-container,
.section-card,
.original-form-container,
.input-wrapper,
.custom-input,
.primary-button,
.submit-button {
	max-width: 100%;
	overflow-x: hidden;
}

/* DevExpress specific fixes for neumorphic input focus */
.dx-texteditor-container {
	overflow: visible !important;
}

.dx-texteditor {
	overflow: visible !important;
}

.dx-texteditor-input-container {
	overflow: visible !important;
}

/* Neumorphic z-index for focused inputs */
.custom-input.dx-state-focused,
.custom-input:focus-within {
	z-index: 15;
	position: relative;
}
