/*
 * Authentication page styles.
 */

.login-page {
	background: radial-gradient(circle at 15% 10%, rgba(123, 206, 194, 0.22), transparent 38%), radial-gradient(circle at 85% 15%, rgba(71, 77, 119, 0.18), transparent 36%), linear-gradient(135deg, #f8fbff 0%, #f3f6ff 45%, #f8fbff 100%);
	padding: 64px 0 96px;
	position: relative;
	overflow: hidden;
}

.login-page::before,
.login-page::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	filter: blur(110px);
	z-index: 0;
}

.login-page::before {
	background: rgba(123, 206, 194, 0.35);
	top: -60px;
	left: -60px;
}

.login-page::after {
	background: rgba(36, 40, 92, 0.22);
	bottom: -120px;
	right: -80px;
}

.login-grid {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0 auto;
}

.login-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 25px 75px rgba(15, 23, 42, 0.12);
	border: 1px solid #eef2ff;
}

.login-card h2 {
	font-size: 26px;
	color: #0f172a;
	margin-bottom: 10px;
}

.login-card p {
	margin-bottom: 20px;
	color: #475569;
}

.login-form {
	display: grid;
	gap: 16px;
}

.login-form .form-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.login-form label {
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #d8e0ff;
	background: #f8fafc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font-size: 15px;
	color: #0f172a;
}

.login-form input:focus {
	outline: none;
	border-color: #3246d3;
	box-shadow: 0 0 0 4px rgba(50, 70, 211, 0.12);
	background: #fff;
}

.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	color: #475569;
}

.login-options label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: #0f172a;
}

.login-submit {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.login-submit button {
	background: #276B61;
	color: #FFFFFF;
	border: none;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
	transition: opacity 0.2s ease;
}

.login-submit button:hover {
	opacity: 0.9;
}

.login-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
}

.login-links a {
	color: #3246d3;
	font-weight: 700;
}

.login-notice {
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.login-notice.error {
	background: #fef2f2;
	border: 1px solid #fecdd3;
	color: #991b1b;
}

.signup-page {
	background: radial-gradient(circle at 10% 10%, rgba(123, 206, 194, 0.25), transparent 35%), radial-gradient(circle at 90% 20%, rgba(71, 77, 119, 0.18), transparent 35%), linear-gradient(135deg, #f7fbff 0%, #f3f5ff 40%, #f7fbff 100%);
	padding: 64px 0 96px;
	position: relative;
	overflow: hidden;
}

.signup-page::before,
.signup-page::after {
	content: "";
	position: absolute;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	filter: blur(120px);
	z-index: 0;
}

.signup-page::before {
	background: rgba(123, 206, 194, 0.35);
	top: -60px;
	left: -60px;
}

.signup-page::after {
	background: rgba(36, 40, 92, 0.26);
	bottom: -120px;
	right: -80px;
}

.signup-grid {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.signup-form-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
	border: 1px solid #eef2ff;
	position: relative;
}

.signup-form-card h2 {
	font-size: 24px;
	color: #0f172a;
	margin-bottom: 8px;
}

.signup-form-card p {
	margin-bottom: 20px;
	color: #475569;
}

.signup-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.signup-form .form-control {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.signup-form label {
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}

.signup-form input,
.signup-form select {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #d8e0ff;
	background: #f8fafc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font-size: 15px;
	color: #0f172a;
}

.signup-form input:focus,
.signup-form select:focus {
	outline: none;
	border-color: #3246d3;
	box-shadow: 0 0 0 4px rgba(50, 70, 211, 0.12);
	background: #fff;
}

.signup-form .inline-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	grid-column: 1 / -1;
}

.signup-form .inline-group > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.signup-form .full-span {
	grid-column: 1 / -1;
}

.password-strength {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #475569;
	margin-bottom: 4px;
}

.password-strength-bar {
	flex: 1;
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}

.password-strength-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #0f766e);
	transition: width 0.25s ease;
	border-radius: 999px;
}

.signup-notice {
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 14px;
	font-size: 14px;
	line-height: 1.5;
}

.signup-notice.error {
	background: #fef2f2;
	border: 1px solid #fecdd3;
	color: #991b1b;
}

.signup-notice.success {
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.signup-submit {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.signup-submit button {
	background: #276B61;
	color: #FFFFFF;
	border: none;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
	transition: opacity 0.2s ease;
}

.signup-submit button:hover {
	opacity: 0.9;
}

.signup-submit .microcopy {
	font-size: 13px;
	color: #475569;
}

.signup-alt {
	margin-top: 16px;
	font-size: 14px;
	color: #0f172a;
	text-align: center;
}

.signup-alt a {
	color: #3246d3;
	font-weight: 700;
}

.newsletter-optin {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #0f172a;
}

.auth-page {
	background: radial-gradient(circle at 15% 10%, rgba(123, 206, 194, 0.22), transparent 38%), radial-gradient(circle at 85% 15%, rgba(71, 77, 119, 0.18), transparent 36%), linear-gradient(135deg, #f8fbff 0%, #f3f6ff 45%, #f8fbff 100%);
	padding: 64px 0 96px;
	position: relative;
	overflow: hidden;
}

.auth-page::before,
.auth-page::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	filter: blur(110px);
	z-index: 0;
}

.auth-page::before {
	background: rgba(123, 206, 194, 0.35);
	top: -60px;
	left: -60px;
}

.auth-page::after {
	background: rgba(36, 40, 92, 0.22);
	bottom: -120px;
	right: -80px;
}

.auth-grid {
	position: relative;
	z-index: 1;
	max-width: 560px;
	margin: 0 auto;
}

.auth-card {
	background: #ffffff;
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 25px 75px rgba(15, 23, 42, 0.12);
	border: 1px solid #eef2ff;
}

.auth-card h2 {
	font-size: 26px;
	color: #0f172a;
	margin-bottom: 10px;
}

.auth-card p {
	margin-bottom: 20px;
	color: #475569;
}

.auth-form {
	display: grid;
	gap: 16px;
}

.auth-form .form-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-form label {
	font-weight: 600;
	color: #0f172a;
	font-size: 14px;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #d8e0ff;
	background: #f8fafc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	font-size: 15px;
	color: #0f172a;
}

.auth-form input:focus {
	outline: none;
	border-color: #3246d3;
	box-shadow: 0 0 0 4px rgba(50, 70, 211, 0.12);
	background: #fff;
}

.auth-submit {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.auth-submit button {
	background: linear-gradient(135deg, #3246d3, #1b9db6);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 16px 40px rgba(50, 70, 211, 0.26);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit button:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 55px rgba(50, 70, 211, 0.28);
}

.auth-links {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.auth-links a {
	color: #3246d3;
	font-weight: 700;
}

.auth-notice {
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.auth-notice.error {
	background: #fef2f2;
	border: 1px solid #fecdd3;
	color: #991b1b;
}

.auth-notice.success {
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
	color: #065f46;
}

@media (max-width: 768px) {
	.signup-page {
		padding: 42px 0 72px;
	}

	.signup-hero-card,
	.signup-form-card {
		padding: 24px;
	}

	.signup-form .inline-group {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.login-page,
	.auth-page {
		padding: 44px 0 72px;
	}

	.login-card,
	.auth-card {
		padding: 24px;
	}
}
