/* Shared Registration Styles for Login and Signup Pages */

/* Container and Card Styles */
.registration-container {
	max-width: 400px;
	margin: 0 auto;
	padding: 2rem 16px;
}

.registration-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	padding: 2.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.registration-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.registration-header {
	text-align: center;
	margin-bottom: 2rem;
}

.registration-title {
	font-size: 2rem;
	font-weight: 700;
	color: white;
	margin-bottom: 0.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.registration-subtitle {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
}

/* Form Styles */
.form-group {
	margin-bottom: 1.5rem;
	position: relative;
}

.form-label {
	display: block;
	margin-bottom: 0.75rem;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-control {
	width: 100%;
	padding: 1.25rem 1.5rem;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 1rem;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	min-height: 56px;
}

.form-control:focus {
	outline: none;
	border-color: #28a745;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
	color: var(--text-light);
	transform: translateY(-2px);
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.form-control:focus::placeholder {
	color: rgba(255, 255, 255, 0.3);
}

/* Input Icons */
.input-icon {
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.5);
	transition: all 0.3s ease;
}

.form-control:focus + .input-icon {
	color: #28a745;
}

/* Submit Button */
.submit-btn {
	width: 100%;
	padding: 1.25rem 2rem;
	background: linear-gradient(135deg, #28a745, #20c997);
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 1.1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	min-height: 56px;
}

.submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
	background: linear-gradient(135deg, #20c997, #28a745);
}

.submit-btn:active {
	transform: translateY(0);
}

.submit-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.submit-btn:hover::before {
	left: 100%;
}

/* Footer Styles */
.registration-footer {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-link {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: all 0.3s ease;
}

.registration-link:hover {
	color: #28a745;
	text-decoration: none;
}

/* Loading State */
.submit-btn.loading {
	pointer-events: none;
	opacity: 0.7;
}

.submit-btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid transparent;
	border-top: 2px solid white;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error and Success States */
.form-control.error {
	border-color: #dc3545;
	background: rgba(220, 53, 69, 0.1);
}

.error-message {
	color: #dc3545;
	font-size: 0.875rem;
	margin-top: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-control.success {
	border-color: #28a745;
	background: rgba(40, 167, 69, 0.1);
}

/* Password Strength Indicator */
.password-strength {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
}

.strength-bar {
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	margin-top: 0.25rem;
	overflow: hidden;
}

.strength-fill {
	height: 100%;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.strength-weak { width: 25%; background: #dc3545; }
.strength-fair { width: 50%; background: #ffc107; }
.strength-good { width: 75%; background: #17a2b8; }
.strength-strong { width: 100%; background: #28a745; }

/* Mobile Optimizations */
@media (max-width: 768px) {
	.registration-container {
		padding: 1rem 12px;
	}

	.registration-card {
		padding: 2rem 1.5rem;
	}

	.registration-title {
		font-size: 1.75rem;
	}
	
	.form-control {
		padding: 1rem 1.25rem;
		min-height: 52px;
	}
	
	.submit-btn {
		padding: 1rem 1.5rem;
		min-height: 52px;
	}
	
	.form-label {
		margin-bottom: 0.5rem;
	}
	
	.error-message {
		margin-top: 0.5rem;
	}
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
	.registration-container {
		padding: 0.75rem 8px;
	}
	
	.registration-card {
		padding: 1.5rem 1.25rem;
	}
	
	.registration-title {
		font-size: 1.5rem;
	}
	
	.form-control {
		padding: 0.875rem 1rem;
	}
	
	.submit-btn {
		padding: 0.875rem 1.25rem;
	}
}

/* Accessibility */
.form-control:focus {
	outline: 2px solid #28a745;
	outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.registration-card {
		background: rgba(0, 0, 0, 0.9);
		border: 2px solid rgba(255, 255, 255, 0.5);
	}
}
