/* === AUTH PAGE STYLES ===
 * Deliberately plain — the whole point is for this to be maximally boring.
 * The actual aesthetic lives in chat.css.
 */

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: #ffffff;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 1rem;
}

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

h1 {
	font-size: 1.5rem;
	font-weight: 400;
	margin-bottom: 1.5rem;
	color: #000;
}

/* === FORM === */

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

label {
	display: block;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
	color: #666;
}

.optional {
	color: #aaa;
	font-size: 0.8rem;
}

input {
	width: 100%;
	padding: 0.625rem;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff;
	color: #333;
	transition: border-color 0.15s;
}

input:focus {
	outline: none;
	border-color: #9ca3af;
}

button[type="submit"] {
	width: 100%;
	padding: 0.625rem;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-size: 0.9375rem;
	font-family: inherit;
	cursor: pointer;
	margin-top: 0.5rem;
	transition: background 0.15s;
}

button[type="submit"]:hover   { background: #333; }
button[type="submit"]:active  { background: #555; }
button[type="submit"]:disabled {
	background: #999;
	cursor: not-allowed;
}

/* === TOGGLE LINK === */

.toggle {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: #666;
}

.toggle a {
	color: #000;
	text-decoration: none;
}

.toggle a:hover { text-decoration: underline; }

/* === ERROR === */

.error {
	color: #dc2626;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	min-height: 1.25rem; /* Prevents layout shift */
}

/* === VIEW SWITCHING === */

.view         { display: none; }
.view.active  { display: block; }
