/**
 * Tech Old Hand Auth - Login, Register, Dashboard
 */
.toh-auth-wrap {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
}

.toh-auth-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
	max-width: 420px;
	width: 100%;
	padding: 40px 36px;
}

.toh-auth-header {
	text-align: center;
	margin-bottom: 28px;
}

.toh-auth-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px !important;
	height: 56px !important;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border-radius: 14px;
	color: #fff !important;
	font-size: 28px !important;
	margin-bottom: 16px;
}

.toh-auth-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
}

.toh-auth-subtitle {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.toh-auth-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

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

.toh-auth-notice.toh-auth-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.toh-auth-form {
	margin-bottom: 20px;
}

.toh-auth-field {
	margin-bottom: 20px;
}

.toh-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #334155;
	margin-bottom: 8px;
}

.toh-auth-input {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.toh-auth-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
	background: #fff;
}

.toh-auth-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #475569;
	cursor: pointer;
}

.toh-auth-btn {
	width: 100%;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
}

.toh-auth-btn:hover {
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.toh-auth-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.toh-auth-footer {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: #64748b;
}

.toh-auth-footer a {
	color: #3b82f6;
	text-decoration: none;
}

.toh-auth-footer a:hover {
	text-decoration: underline;
}

/* Dashboard */
.toh-auth-dashboard {
	align-items: flex-start;
	padding: 40px 24px 60px;
	min-height: auto;
}

.toh-dash-container {
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.toh-dash-header {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	margin-bottom: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
	position: relative;
}

.toh-dash-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
}

.toh-dash-welcome {
	margin: 0 0 16px;
	font-size: 15px;
	color: #64748b;
}

.toh-dash-logout {
	position: absolute;
	top: 28px;
	right: 32px;
	padding: 8px 16px;
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: all 0.2s;
}

.toh-dash-logout:hover {
	color: #dc2626;
	border-color: #fecaca;
	background: #fef2f2;
}

.toh-dash-grid {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 24px;
}

@media (max-width: 768px) {
	.toh-dash-grid {
		grid-template-columns: 1fr;
	}
}

.toh-dash-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
}

.toh-dash-card h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.toh-dash-desc {
	margin: 0 0 20px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}

.toh-dash-dl {
	margin: 0;
}

.toh-dash-dl dt {
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
	margin-top: 12px;
	margin-bottom: 4px;
}

.toh-dash-dl dt:first-child {
	margin-top: 0;
}

.toh-dash-dl dd {
	margin: 0;
	font-size: 15px;
	color: #0f172a;
}

.toh-key-create {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}

.toh-key-create .toh-auth-input {
	flex: 1;
}

.toh-key-create .toh-auth-btn {
	width: auto;
	flex-shrink: 0;
}

.toh-key-result {
	margin-bottom: 20px;
	min-height: 24px;
}

.toh-key-new-wrap {
	padding: 20px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	margin-bottom: 16px;
}

.toh-key-new-msg {
	margin: 0 0 12px;
	font-size: 14px;
	color: #166534;
	font-weight: 500;
}

.toh-key-new-row {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.toh-key-new-input {
	flex: 1;
	padding: 10px 14px;
	font-size: 13px;
	font-family: monospace;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	background: #fff;
}

.toh-key-new-input:read-only {
	background: #fff;
	cursor: default;
}

.toh-key-copy {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	background: #22c55e;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.toh-key-copy:hover {
	background: #16a34a;
}

.toh-key-copy.toh-copied {
	background: #166534;
}

.toh-key-copy .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.toh-key-done {
	width: auto;
	padding: 8px 20px;
	font-size: 14px;
}

.toh-key-result .toh-key-new {
	margin: 0;
	padding: 12px 16px;
	background: #f0fdf4;
	border-radius: 8px;
	color: #166534;
	font-size: 14px;
}

.toh-key-result .toh-key-new code {
	display: block;
	margin-top: 8px;
	padding: 8px;
	background: #dcfce7;
	border-radius: 4px;
	font-size: 12px;
	word-break: break-all;
}

.toh-key-result .toh-key-err {
	margin: 0;
	color: #dc2626;
	font-size: 14px;
}

.toh-key-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.toh-key-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 10px;
	margin-bottom: 12px;
	border: 1px solid #e2e8f0;
}

.toh-key-label {
	font-weight: 500;
	color: #0f172a;
	min-width: 80px;
}

.toh-key-code {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	padding: 6px 10px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	word-break: break-all;
}

.toh-key-date {
	font-size: 12px;
	color: #94a3b8;
}

.toh-key-revoke {
	padding: 6px 12px;
	font-size: 12px;
	color: #dc2626;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.toh-key-revoke:hover {
	background: #fee2e2;
}

.toh-key-empty {
	padding: 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

.toh-key-used-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	background: #dbeafe;
	color: #1d4ed8;
	border-radius: 6px;
}

.toh-key-item.toh-key-used .toh-key-code {
	opacity: 0.9;
}

.toh-key-no-delete {
	color: #94a3b8;
	font-size: 13px;
	cursor: help;
}
