/* Neumorphism Login Form - Complete & Self-Contained */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #e0e5ec;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	line-height: 1.6;
}

.login-container {
	width: 100%;
	max-width: 420px;
}

.login-card {
	background: #e0e5ec;
	border-radius: 30px;
	padding: 50px 40px;
	box-shadow: 
		20px 20px 60px #bec3cf,
		-20px -20px 60px #ffffff;
	position: relative;
	transition: all 0.3s ease;
}

.login-card:hover {
	transform: translateY(-5px);
}

.login-header {
	text-align: center;
	margin-bottom: 40px;
}

.neu-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 24px;
	background: #e0e5ec;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 
		8px 8px 20px #bec3cf,
		-8px -8px 20px #ffffff,
		inset 0 0 0 #bec3cf,
		inset 0 0 0 #ffffff;
	transition: all 0.3s ease;
}

.neu-icon:hover {
	box-shadow: 
		4px 4px 10px #bec3cf,
		-4px -4px 10px #ffffff,
		inset 4px 4px 10px #bec3cf,
		inset -4px -4px 10px #ffffff;
}

.icon-inner {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c7293;
}

.icon-inner svg {
	width: 100%;
	height: 100%;
}

.login-header h2 {
	color: #3d4468;
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: 8px;
}

.login-header p {
	color: #9499b7;
	font-size: 15px;
	font-weight: 400;
}

/* Neumorphic Input Styles */
.form-group {
	margin-bottom: 28px;
	position: relative;
}

.neu-input {
	position: relative;
	background: #e0e5ec;
	border-radius: 15px;
	box-shadow: 
		inset 8px 8px 16px #bec3cf,
		inset -8px -8px 16px #ffffff;
	transition: all 0.3s ease;
}

.neu-input:focus-within {
	box-shadow: 
		inset 4px 4px 8px #bec3cf,
		inset -4px -4px 8px #ffffff;
}

.neu-input input {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 1rem;
	padding: 18px 16px 18px 48px;
	border-radius: 15px;
	color: #3d4468;
	outline: none;
	transition: all 0.3s ease;
}

.neu-input input:focus {
	background: #f5f6fa;
}

.neu-input label {
	position: absolute;
	left: 48px;
	top: 18px;
	color: #9499b7;
	font-size: 1rem;
	pointer-events: none;
	transition: all 0.2s;
}

.neu-input input:focus + label,
.neu-input input.has-value + label {
	top: 2px;
	left: 48px;
	font-size: 0.85rem;
	color: #6c7293;
}

.input-icon {
	position: absolute;
	left: 16px;
	top: 16px;
	width: 24px;
	height: 24px;
	color: #6c7293;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-group .input-icon {
	left: 16px;
	top: 16px;
}

.password-toggle {
	position: absolute;
	right: 16px;
	top: 16px;
	background: none;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle svg {
	width: 24px;
	height: 24px;
	color: #6c7293;
	transition: opacity 0.2s;
}

.password-toggle .eye-open {
	display: block;
}

.password-toggle .eye-closed {
	display: none;
}

.password-toggle.show-password .eye-open {
	display: none;
}

.password-toggle.show-password .eye-closed {
	display: block;
}

.error-message {
	color: #ff3b5c;
	font-size: 0.95rem;
	margin-top: 6px;
	display: none;
}

.error-message.show {
	display: block;
}

.form-group.error .neu-input {
	box-shadow: 
		inset 8px 8px 16px #cecb0d,
		inset -8px -8px 16px #ffffff;
}

.form-group.error input {
	color: #cecb0d;
}

.form-group.error label {
	color: #ff3b5c;
}

.neu-button {
	width: 100%;
	padding: 18px 0;
	border-radius: 15px;
	background: #e0e5ec;
	color: #3d4468;
	font-size: 1.1rem;
	font-weight: 600;
	border: none;
	box-shadow: 
		8px 8px 20px #bec3cf,
		-8px -8px 20px #ffffff;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	overflow: hidden;
}

.neu-button:hover {
	background: #f5f6fa;
	color: #6c7293;
	box-shadow: 
		4px 4px 10px #bec3cf,
		-4px -4px 10px #ffffff;
}

.btn-loader {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.login-btn.loading .btn-text {
	opacity: 0;
}

.login-btn.loading .btn-loader {
	display: block;
}

.neu-spinner {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 3px solid #6c7293;
	border-top: 3px solid #e0e5ec;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.divider {
	display: flex;
	align-items: center;
	margin: 32px 0 24px;
}

.divider-line {
	flex: 1;
	height: 1px;
	background: #bec3cf;
	margin: 0 8px;
}

.social-login {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
}

.social-btn {
	background: #e0e5ec;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 
		4px 4px 10px #bec3cf,
		-4px -4px 10px #ffffff;
	border: none;
	cursor: pointer;
	transition: all 0.3s;
}

.social-btn:hover {
	background: #f5f6fa;
	box-shadow: 
		2px 2px 5px #bec3cf,
		-2px -2px 5px #ffffff;
}

.signup-link {
	text-align: center;
	color: #9499b7;
	font-size: 1rem;
	margin-bottom: 16px;
}

.signup-link a {
	color: #6c7293;
	text-decoration: underline;
	font-weight: 500;
}

.success-message {
	display: none;
	text-align: center;
	margin-top: 32px;
}

.success-message.show {
	display: block;
}

.success-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 16px;
	background: #e0e5ec;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 
		4px 4px 10px #bec3cf,
		-4px -4px 10px #ffffff;
}

.success-icon svg {
	width: 32px;
	height: 32px;
	color: #00c896;
}

@media (max-width: 600px) {
	body {
		padding: 12px;
		align-items: flex-start;
	}
	.login-container {
		max-width: 100%;
	}
	.login-card {
		padding: 28px 18px;
		border-radius: 22px;
	}
	.login-header h2 {
		font-size: 1.7rem;
	}
	.login-header p {
		font-size: 1rem;
	}
	.neu-icon {
		width: 60px;
		height: 60px;
	}
	.icon-inner {
		width: 28px;
		height: 28px;
	}
	.neu-input input {
		font-size: 1.05rem;
		padding: 16px 14px 16px 44px;
	}
	.neu-button {
		font-size: 1.1rem;
		padding: 16px 0;
		min-height: 52px;
	}
	.form-group {
		margin-bottom: 22px;
	}
}