/* The membership centre's look, in plain CSS.
 *
 * The original's page is a wooden panel with a leaf-work border and a banner; the
 * client's own UI art is where that came from and re-cutting it is a separate job
 * (`web/account_server.py`'s docstring says so).  What is here is the *layout* --
 * the two-column field rows, the red help text, the green inline check -- drawn in
 * the same palette so it reads as the same screen.
 */

:root {
	--wood: #d9b98a;
	--wood-dark: #b08c58;
	--edge: #4a2f18;
	--field: #f6efe2;
	--ink: #2a1a0c;
	--help: #8a5a2b;
	--red: #c02020;
	--green: #1f8a2f;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	padding: 24px 0;
	background: #2b1d10;
	font-family: "Microsoft YaHei", "Malgun Gothic", sans-serif;
	color: var(--ink);
	display: flex;
	justify-content: center;
}

/* The wooden panel: a tan field inside a dark double edge. */
.panel {
	width: 780px;
	background: var(--wood);
	border: 3px solid var(--edge);
	outline: 1px solid var(--wood-dark);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--wood-dark), 0 6px 18px rgba(0, 0, 0, .5);
	padding: 0 0 12px;
}

/* The banner strip.  The original puts the logo and 會員管理中心 on an
 * illustration; here it is the same band in the same colours. */
.banner {
	height: 96px;
	margin: 6px;
	background: linear-gradient(180deg, #2a3f7a 0%, #3d5aa8 55%, #7a6fc0 100%);
	border: 2px solid var(--edge);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	color: #fff;
}

.banner .logo {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	letter-spacing: 2px;
	text-shadow: 2px 2px 0 #16224a, 0 0 12px #9fb4ff;
}

.banner .logo small { display: block; font-size: 10px; letter-spacing: 0; }

.banner .title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 6px;
	text-shadow: 2px 2px 0 #16224a;
}

form { margin: 18px 26px 6px; }

.row {
	display: flex;
	align-items: center;
	margin-bottom: 14px;
	min-height: 30px;
}

.row label {
	width: 112px;
	font-size: 17px;
	white-space: nowrap;
}

.row input {
	width: 280px;
	height: 30px;
	padding: 3px 8px;
	font-size: 15px;
	background: var(--field);
	border: 2px solid #8a7a5c;
	border-radius: 2px;
}

.row input:focus { outline: 2px solid #6f86c8; }

.row .help { margin-left: 14px; font-size: 15px; color: var(--help); }
.row .mark { margin-left: 14px; font-size: 17px; }
.row .mark.ok { color: var(--green); }
.row .mark.bad { color: var(--red); }

.switch { margin: 18px 0 6px 112px; font-size: 15px; }
.switch a { color: var(--red); font-weight: 700; text-decoration: none; }

.buttons { margin: 22px 0 6px 112px; }
.buttons button, .buttons a.button {
	min-width: 108px;
	height: 36px;
	margin-right: 26px;
	font-size: 16px;
	background: linear-gradient(180deg, #fdfaf3, #ddd0b6);
	border: 2px solid #6a5330;
	border-radius: 2px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	text-decoration: none;
}
.buttons button:hover { background: linear-gradient(180deg, #fff, #e8dcc4); }

.notice {
	margin: 14px 26px 0;
	padding: 8px 12px;
	background: #f3e2c8;
	border: 1px solid var(--wood-dark);
	font-size: 15px;
	color: var(--red);
}

.member { margin: 24px 26px 6px; font-size: 18px; }
.member .line { margin-bottom: 22px; }
.member .key { display: inline-block; width: 112px; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
table th, table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--wood-dark); }

.footer {
	margin: 22px 6px 0;
	padding-top: 10px;
	border-top: 1px solid var(--wood-dark);
	text-align: center;
	font-size: 15px;
	color: #4a3a22;
}
