/* Authentication Pages CSS - Matching Landing Page Style */
.auth-section {
	padding: 5rem 2rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: calc(100vh - 80px - 200px); /* viewport height minus header and footer approx */
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-container {
	max-width: 500px;
	width: 100%;
	margin: 0 auto;
}

.auth-card {
	background: white;
	border-radius: 1rem;
	padding: 3rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.auth-card h2 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
	text-align: center;
}

.auth-card h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
	text-align: center;
}

.auth-card .auth-subtitle {
	font-size: 1rem;
	color: var(--text-light);
	text-align: center;
	margin-bottom: 2rem;
}

.auth-form {
	margin-top: 2rem;
}

.auth-form-group {
	margin-bottom: 1.5rem;
}

.auth-form label {
	display: block;
	font-weight: 500;
	color: var(--text-dark);
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: 1rem;
	transition: all 0.2s;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-form input:focus,
.auth-form select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .form-select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: 1rem;
}

.auth-btn-primary {
	width: 100%;
	background: var(--primary-color);
	color: white;
	padding: 0.875rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	margin-top: 1rem;
}

.auth-btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.auth-btn-primary:disabled {
	background: var(--text-light);
	cursor: not-allowed;
	transform: none;
}

.auth-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.auth-link:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

.auth-text-muted {
	color: var(--text-light);
	font-size: 0.875rem;
	margin-top: 1rem;
}

.auth-text-center {
	text-align: center;
	margin-top: 1.5rem;
}

.auth-alert {
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

.auth-alert-danger {
	background: #fee;
	color: #c00;
	border: 1px solid #fcc;
}

.auth-alert-info {
	background: #e3f2fd;
	color: #1976d2;
	border: 1px solid #90caf9;
}

.auth-alert-success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.auth-divider {
	text-align: center;
	margin: 2rem 0;
	position: relative;
}

.auth-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--border-color);
}

.auth-divider span {
	background: white;
	padding: 0 1rem;
	position: relative;
	color: var(--text-light);
	font-size: 0.875rem;
}

/* Password strength meter */
.password-meter {
	display: flex;
	height: 5px;
	margin-top: 10px;
	gap: 5px;
}

.meter-section {
	flex: 1;
	background-color: #e5e7eb;
	border-radius: 3px;
	transition: background-color 0.3s;
}

.meter-section.weak {
	background-color: #ef4444;
}

.meter-section.medium {
	background-color: #f59e0b;
}

.meter-section.strong {
	background-color: #10b981;
}

.meter-section.very-strong {
	background-color: #059669;
}

/* Floating labels for form controls */
.border-label-flt {
	position: relative;
	margin-bottom: 1.5rem;
}

.border-label-flt label {
	position: absolute;
	top: -0.5rem;
	left: 0.75rem;
	background: white;
	padding: 0 0.5rem;
	font-size: 0.875rem;
	color: var(--text-dark);
	font-weight: 500;
}

.border-label-flt select,
.border-label-flt input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	font-size: 1rem;
}

/* Validation errors */
.text-danger {
	color: #dc3545;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: block;
}

.field-validation-error {
	color: #dc3545;
	font-size: 0.875rem;
	margin-top: 0.25rem;
	display: block;
}

.validation-summary-errors {
	background: #fee;
	color: #c00;
	border: 1px solid #fcc;
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1.5rem;
}

/* Hide validation summary when it has no errors */
.validation-summary-errors:empty,
.validation-summary-errors.validation-summary-valid {
	display: none;
}

.validation-summary-errors ul {
	margin: 0;
	padding-left: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.auth-section {
		padding: 3rem 1rem;
		min-height: calc(100vh - 60px - 150px);
	}

	.auth-card {
		padding: 2rem 1.5rem;
	}

	.auth-card h2 {
		font-size: 1.75rem;
	}

	.auth-card h3 {
		font-size: 1.25rem;
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 1.5rem 1rem;
	}
}
