/* Shared styling for the reset password request and confirmation views */

:root {
	--reset-primary: #18a673;
	--reset-primary-dark: #0f7d55;
	--reset-accent: #dff7ef;
	--reset-danger: #ffe4e6;
	--reset-danger-text: #a71d2a;
	--reset-text: #1b1f24;
	--reset-muted: #5e6a75;
	--reset-border: #e4e8ec;
	--reset-shadow: 0 18px 35px rgba(24, 166, 115, 0.15);
}

.reset-container {
	min-height: calc(100vh - 160px);
	padding: 4rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #f8fdfb 0%, #eef7f3 100%);
}

.reset-card {
	width: 100%;
	max-width: 28rem;
	background: #ffffff;
	border-radius: 18px;
	padding: 2.75rem 2.5rem;
	box-shadow: var(--reset-shadow);
	border: 1px solid rgba(24, 166, 115, 0.05);
}

.reset-title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 2.25rem;
	font-weight: 700;
	color: var(--reset-text);
}

.reset-subtitle {
	margin: 0.75rem 0 1.25rem;
	font-size: 1rem;
	line-height: 1.6rem;
	color: var(--reset-muted);
}

.reset-description {
	margin: 0.5rem 0 2rem;
	font-size: 0.95rem;
	line-height: 1.6rem;
	color: var(--reset-muted);
}

.reset-flash-stack {
	margin-bottom: 1.25rem;
}

.reset-card .flash-message {
	box-shadow: none;
	border-width: 1px;
}

.reset-card .flash-message__body {
	font-size: 0.9rem;
}

.reset-inline-flash {
	display: block;
	margin-bottom: 1.25rem;
}

#reset-client-error {
	margin-bottom: 1.25rem;
}

.reset-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.reset-input-group {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.reset-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--reset-text);
}

.reset-form input[type="email"] {
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--reset-border);
	padding: 0.85rem 1rem;
	font-size: 1rem;
	background-color: #fbfdfc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reset-form input[type="password"] {
	width: 100%;
	border-radius: 12px;
	border: 1px solid var(--reset-border);
	padding: 0.85rem 1rem;
	font-size: 1rem;
	background-color: #fbfdfc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reset-form input[type="email"]:focus {
	outline: none;
	border-color: rgba(24, 166, 115, 0.55);
	box-shadow: 0 0 0 3px rgba(24, 166, 115, 0.18);
}

.reset-form input[type="password"]:focus {
	outline: none;
	border-color: rgba(24, 166, 115, 0.55);
	box-shadow: 0 0 0 3px rgba(24, 166, 115, 0.18);
}

.reset-helper-text {
	font-size: 0.82rem;
	line-height: 1.3rem;
	color: var(--reset-muted);
}

.reset-toggle {
	margin-top: -0.3rem;
	font-size: 0.82rem;
	color: var(--reset-primary-dark);
	font-weight: 600;
	cursor: pointer;
	align-self: flex-end;
}

.reset-toggle:hover,
.reset-toggle:focus {
	text-decoration: underline;
}

.reset-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	border-radius: 999px;
	border: none;
	background: var(--reset-primary);
	color: #ffffff;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	text-decoration: none;
}

.reset-submit:hover,
.reset-submit:focus {
	background: var(--reset-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 15px 25px rgba(15, 125, 85, 0.25);
	outline: none;
}

.reset-footer {
	margin-top: 1.75rem;
	font-size: 0.92rem;
	color: var(--reset-muted);
}

.reset-link {
	color: var(--reset-primary-dark);
	font-weight: 600;
}

.reset-link:hover,
.reset-link:focus {
	text-decoration: underline;
}

.reset-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 2.25rem;
}

.reset-actions.inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.reset-action {
	width: 100%;
	text-align: center;
}

.reset-secondary {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.8rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(24, 166, 115, 0.4);
	color: var(--reset-primary-dark);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.reset-secondary:hover,
.reset-secondary:focus {
	background: rgba(24, 166, 115, 0.08);
	border-color: rgba(24, 166, 115, 0.55);
}

@media (max-width: 600px) {
	.reset-card {
		padding: 2.25rem 1.75rem;
	}

	.reset-title {
		font-size: 1.6rem;
		line-height: 2.05rem;
	}

	.reset-container {
		padding: 3.2rem 1rem;
	}

	.reset-actions.inline {
		flex-direction: column;
		align-items: stretch;
	}
}
