/**
 * Mail Password Changer — Application Stylesheet
 *
 * Desktop-first design with responsive support for mobile devices.
 * No framework dependency. Covers all UI elements: container, headings,
 * messages, form groups, inputs, buttons, and responsive adjustments.
 */

/* --- Reset and Base --- */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	line-height: 1.5;
}

body {
	/* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
	font-family: -apple-system, sans-serif;
	color: #212529;
	background-color: #f5f5f5;
	min-height: 100vh;
	padding: 3rem;
}

/* --- Container --- */

.container {
	width: 480px;
	margin: 2rem auto;
	padding: 2rem;
	background-color: #ffffff;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Typography --- */

h1 {
	font-size: 1.375rem;
	font-weight: normal;
	color: #212529;
	margin-bottom: 1rem;
	text-align: left;
}

/* --- Message Area --- */

.message {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background-color: #e8f4fd;
	border: 1px solid #b6d4e8;
	border-radius: 4px;
	color: #1a5276;
	font-size: 0.9375rem;
	text-align: center;
}

/* --- Form --- */

.form-group {
	margin-bottom: 1rem;
}

label {
	display: block;
	margin-bottom: 0.375rem;
	font-weight: 500;
	font-size: 0.9375rem;
	color: #333333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
	display: block;
	width: 100%;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #212529;
	background-color: #ffffff;
	border: 1px solid #ced4da;
	border-radius: 4px;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	appearance: none;
	-webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	border-color: #4a90d9;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.25);
}

/* --- Password Requirements Text --- */

.password-rule {
	margin-bottom: 1rem;
	padding: 0.625rem 0.75rem;
	background-color: #fefefe;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 0.875rem;
	color: #555555;
	line-height: 1.4;
}

/* --- Button --- */

.btn {
	display: block;
	width: 100%;
	padding: 0.625rem 1rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: #ffffff;
	background-color: #4a90d9;
	border: 1px solid #4a90d9;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
	appearance: none;
	-webkit-appearance: none;
}

.btn:hover {
	background-color: #3a7bc8;
	border-color: #3a7bc8;
}

.btn:active {
	background-color: #2e6bb0;
	border-color: #2e6bb0;
}

.btn:focus {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.35);
}

/* --- Responsive: Tablets (768px and below) --- */

@media (max-width: 768px) {
	body {
		padding: 2rem;
    }

	.container {
		width: 100%;
		max-width: 480px;
    }
}

/* --- Responsive: Mobile (480px and below) --- */

@media (max-width: 480px) {
	body {
		padding: 1rem;
    }

	.container {
		width: 100%;
		margin: 1rem auto;
		padding: 1.25rem;
		border-radius: 0;
		box-shadow: none;
    }

    h1 {
		font-size: 1.125rem;
    }

    .btn {
		padding: 0.75rem 1rem;
    }
}
