/* Authentication Pages Styles */

/* Base Container Styles */
.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #560e77 0%, #935fc7 70%);
	padding: 20px;
}

.auth-wrapper {
	width: 100%;
	max-width: 450px;
}

.auth-header {
	color: white;
	text-align: center;
	margin-bottom: 2rem;
}

.logo-container {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	margin: 0 auto 1rem auto;
}

.logo-icon {
	font-size: 2.5rem;
	color: white;
}

.logo-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
}

.status-icon-container {
	margin-bottom: 1rem;
}

.status-icon {
	animation: pulse 2s infinite;
}

.auth-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
	margin-bottom: 0;
}

.auth-card {
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
}

/* Form Styles */
.form-floating {
	position: relative;
	margin-bottom: 1rem;
}

	.form-floating > .form-control {
		height: 60px;
		padding: 1rem 0.75rem;
		border-radius: 12px;
		border: 2px solid #e9ecef;
		transition: all 0.3s ease;
	}

		.form-floating > .form-control:focus {
			border-color: #667eea;
			box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
			outline: none;
		}

	.form-floating > label {
		padding: 1rem 0.75rem;
		color: #6c757d;
	}

/* Password Toggle */
.password-toggle {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #6c757d;
	cursor: pointer;
	padding: 5px;
	z-index: 10;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

	.password-toggle:hover {
		color: #667eea;
	}

/* RTL Support for Password Toggle */
[dir="rtl"] .password-toggle {
	right: auto;
	left: 15px;
}

/* Ensure password input container has relative positioning */
.form-floating {
	position: relative;
}

	/* Fix password toggle positioning in form-floating */
	.form-floating .password-toggle {
		top: 50%;
		transform: translateY(-50%);
	}

/* Password field container */
.password-field-container {
	position: relative;
}

/* Password strength indicator positioning */
#passwordStrength {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1;
	background: white;
	padding: 0.25rem 0.5rem;
	border: 1px solid #dee2e6;
	border-top: none;
	border-radius: 0 0 0.375rem 0.375rem;
	margin-top: -1px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* RTL support for password strength indicator */
[dir="rtl"] #passwordStrength {
	left: 0;
	right: 0;
}

/* RTL Support for Form Floating */
[dir="rtl"] .form-floating > .form-control {
	padding-left: 3rem;
	padding-right: 0.75rem;
}

[dir="rtl"] .form-floating > label {
	left: auto;
	right: 0;
	transform-origin: 100% 0;
}

/* Checkbox Styles */
.form-check-input:checked {
	background-color: #667eea;
	border-color: #667eea;
}

/* Link Styles */
.auth-link {
	color: yellow;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

	.auth-link:hover {
		/*color: #5a6fd8;*/
		text-decoration: underline;
	}

/* Button Styles */
.auth-btn {
	height: 55px;
	border-radius: 12px;
	font-weight: 600;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	transition: all 0.3s ease;
}

	.auth-btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
	}

	.auth-btn:disabled {
		transform: none;
		opacity: 0.8;
	}

	.auth-btn:focus {
		box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
	}

	/* Button Variants */
	.auth-btn.btn-success {
		background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	}

	.auth-btn.btn-warning {
		background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
		color: #212529;
	}

	.auth-btn.btn-outline-primary {
		border: 2px solid #667eea;
		color: #667eea;
		background: transparent;
	}

		.auth-btn.btn-outline-primary:hover {
			background: #667eea;
			color: white;
		}

/* Footer Styles */
.auth-footer {
	text-align: center;
	margin-top: 2rem;
	color: white;
}

	.auth-footer p {
		margin-bottom: 0.5rem;
	}

/* Alert Styles */
.alert {
	border-radius: 12px;
	border: none;
	margin-bottom: 1.5rem;
}

/* RTL Support for Alert Icons */
[dir="rtl"] .alert .fas {
	margin-left: 0.5rem;
	margin-right: 0;
}

[dir="ltr"] .alert .fas {
	margin-right: 0.5rem;
	margin-left: 0;
}

.alert-success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border: 1px solid #c3e6cb;
	color: #155724;
}

.alert-danger {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.alert-warning {
	background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
	border: 1px solid #ffeaa7;
	color: #856404;
}

.alert-info {
	background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
	border: 1px solid #bee5eb;
	color: #0c5460;
}

/* Password Strength Indicator */
#passwordStrength {
	margin-top: 0.5rem;
	position: relative;
	z-index: 1;
}

/* Ensure form elements maintain position */
.form-floating {
	position: relative;
}

	.form-floating .form-control {
		position: relative;
		z-index: 2;
	}

	.form-floating label {
		position: absolute;
		z-index: 3;
	}

/* Terms and Conditions Styling */
.form-check-label a {
	color: #667eea;
	text-decoration: none;
	transition: color 0.3s ease;
}

	.form-check-label a:hover {
		color: #5a6fd8;
		text-decoration: underline;
	}

/* Language Selector */
.language-selector-auth {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

	.language-selector-auth .dropdown-toggle {
		background: rgba(255, 255, 255, 0.95) !important;
		border: 2px solid rgba(255, 255, 255, 0.9) !important;
		color: #333 !important;
		backdrop-filter: blur(10px);
		transition: all 0.3s ease;
		font-weight: 600;
		padding: 0.75rem 1rem;
		border-radius: 8px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
		text-shadow: none !important;
	}

		.language-selector-auth .dropdown-toggle:hover {
			background: rgba(255, 255, 255, 0.95);
			border-color: rgba(255, 255, 255, 1);
			transform: translateY(-1px);
		}

	.language-selector-auth .dropdown-menu {
		background: rgba(255, 255, 255, 0.98) !important;
		backdrop-filter: blur(10px);
		border: 1px solid rgba(255, 255, 255, 0.3) !important;
		border-radius: 12px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
		min-width: 150px;
	}

	.language-selector-auth .dropdown-item {
		padding: 0.75rem 1rem;
		transition: all 0.2s ease;
		color: #333 !important;
	}

		.language-selector-auth .dropdown-item:hover {
			background: rgba(102, 126, 234, 0.1) !important;
			color: #667eea !important;
		}

		.language-selector-auth .dropdown-item.active {
			background: #667eea !important;
			color: white !important;
		}

/* Verification Page Styles */
.verification-success,
.verification-expired,
.verification-already-verified,
.verification-failed {
	animation: fadeInUp 0.8s ease-out;
}

	.verification-success i,
	.verification-expired i,
	.verification-already-verified i,
	.verification-failed i {
		animation: pulse 2s infinite;
	}

/* Form Validation */
.form-control.is-invalid {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
	animation: shake 0.5s ease-in-out;
}

.invalid-feedback {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: #dc3545;
}

/* Loading States */
.btn-loading {
	display: inline-flex;
	align-items: center;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {
	0%, 100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	75% {
		transform: translateX(5px);
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

/* Form Animation Delays */
.auth-card .form-floating:nth-child(1) {
	animation: fadeInUp 0.6s ease-out 0.1s both;
}

.auth-card .form-floating:nth-child(2) {
	animation: fadeInUp 0.6s ease-out 0.2s both;
}

.auth-card .form-floating:nth-child(3) {
	animation: fadeInUp 0.6s ease-out 0.3s both;
}

.auth-card .form-floating:nth-child(4) {
	animation: fadeInUp 0.6s ease-out 0.4s both;
}

.auth-card .form-check {
	animation: fadeInUp 0.6s ease-out 0.5s both;
}

.auth-btn {
	animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Verification page specific animations */
.verification-success {
	animation-delay: 0.1s;
}

.verification-expired {
	animation-delay: 0.2s;
}

.verification-already-verified {
	animation-delay: 0.3s;
}

.verification-failed {
	animation-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 576px) {
	.auth-container {
		padding: 15px;
	}

	.auth-wrapper {
		max-width: 100%;
	}

	.auth-title {
		font-size: 1.75rem;
	}

	.auth-subtitle {
		font-size: 1rem;
	}

	.logo-container {
		width: 70px;
		height: 70px;
		margin: 0 auto 1rem auto;
	}

	.logo-icon {
		font-size: 2rem;
	}

	.logo-image {
		width: 100%;
		height: 100%;
		object-fit: contain;
	}

	.card-body {
		padding: 1.5rem !important;
	}

	.form-floating > .form-control {
		height: 55px;
	}

	.auth-btn {
		height: 50px;
	}

	.language-selector-auth {
		top: 15px;
		right: 15px;
	}

		.language-selector-auth .dropdown-toggle {
			font-size: 0.9rem;
			padding: 0.5rem 0.75rem;
		}
}

@media (max-width: 480px) {
	.auth-title {
		font-size: 1.5rem;
	}

	.auth-subtitle {
		font-size: 0.9rem;
	}

	.card-body {
		padding: 1rem !important;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.auth-card {
		background: #2d3748;
		color: #e2e8f0;
	}

	.form-floating > .form-control {
		background: #4a5568;
		border-color: #718096;
		color: #e2e8f0;
	}

	.form-floating > label {
		color: #a0aec0;
	}

	.form-check-label {
		color: #e2e8f0;
	}

	.alert-success {
		background: linear-gradient(135deg, #1e3a2e 0%, #2d5a3d 100%);
		border-color: #2d5a3d;
		color: #d4edda;
	}

	.alert-danger {
		background: linear-gradient(135deg, #3a1e1e 0%, #5a2d2d 100%);
		border-color: #5a2d2d;
		color: #f8d7da;
	}

	.alert-warning {
		background: linear-gradient(135deg, #3a2e1e 0%, #5a4d2d 100%);
		border-color: #5a4d2d;
		color: #fff3cd;
	}

	.alert-info {
		background: linear-gradient(135deg, #1e3a3a 0%, #2d5a5a 100%);
		border-color: #2d5a5a;
		color: #d1ecf1;
	}
}
