/* GoyMail chat page. Converse draws the login and register forms in the
   page itself, so this file is the design. Do not restyle them from script. */

html,
body,
converse-root,
converse-bg,
converse-chats {
	background: #458588 !important;
	background-color: #458588 !important;
	color: #ebdbb2;
}

.gm-xmpp-top {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.9rem;
	background: #282828;
	color: #ebdbb2;
	border-bottom: 1px solid #665c54;
	font: 600 0.95rem/1.2 system-ui, sans-serif;
}
.gm-xmpp-top span { color: #a89984; font-weight: 500; }
.gm-xmpp-top nav { margin-left: auto; display: flex; gap: 0.75rem; }
.gm-xmpp-top a { color: #ebdbb2; text-decoration: none; }
.gm-xmpp-top a:hover { text-decoration: underline; }

.converse-brand,
converse-brand-logo,
a.brand-heading,
.brand-heading,
.byline,
converse-about-modal,
converse-footer,
.conversejs footer.footer,
converse-controlbox-navbar {
	display: none !important;
}

.conversejs.converse-fullscreen,
converse-root.converse-fullscreen {
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: 100vh;
	overflow: visible !important;
}

converse-chats,
.converse-chatboxes {
	display: block !important;
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

converse-controlbox {
	float: none !important;
	display: block !important;
	position: relative !important;
	left: auto !important;
	transform: none !important;
	width: min(56rem, calc(100vw - 2rem)) !important;
	max-width: 56rem !important;
	height: auto !important;
	margin: 1.25rem auto 2rem !important;
}

.box-flyout,
.flyout {
	position: static !important;
	inset: auto !important;
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	width: 100% !important;
	background: transparent !important;
	box-shadow: none !important;
}

.controlbox-pane {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	padding: 1.15rem 1.3rem 1rem;
	background: #282828;
	color: #ebdbb2;
	border: 1px solid #665c54;
	border-radius: 8px;
}

converse-login-form,
converse-registration-form,
form.converse-form {
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	background: transparent !important;
	color: #ebdbb2;
}

.form-label,
legend,
.title,
.switch-form,
.switch-form p {
	color: #ebdbb2;
}

.gm-xmpp-usercount {
	display: block;
	margin: 0 0 0.7rem;
	color: #fbf1c7;
	font-weight: 700;
}

.conversejs .form-control,
converse-login-form input.form-control,
converse-registration-form input.form-control,
input[name="username"],
input[name="password"] {
	display: block;
	width: 100%;
	min-height: 2.6rem;
	box-sizing: border-box;
	padding: 0.5rem 0.7rem;
	background: #1d2021 !important;
	color: #ebdbb2 !important;
	border: 1px solid #665c54 !important;
	border-radius: 6px !important;
	box-shadow: none !important;
}

.conversejs .form-control::placeholder,
converse-login-form input::placeholder,
converse-registration-form input::placeholder {
	color: #928374 !important;
	opacity: 1;
}

.conversejs .form-control:focus,
converse-login-form input:focus,
converse-registration-form input:focus {
	border-color: #b8bb26 !important;
	outline: 1px solid #b8bb26;
	box-shadow: none !important;
}

converse-registration-form .input-group {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.45rem;
	align-items: stretch;
	width: 100% !important;
	height: auto !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.gm-xmpp-user-actions { display: contents; }

.gm-xmpp-user-actions .gm-xmpp-btn {
	white-space: nowrap;
	padding: 0.45rem 0.7rem;
}

converse-registration-form .input-group > .form-control,
converse-registration-form input[name="username"] {
	grid-column: 1;
	grid-row: 1;
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	align-self: stretch !important;
}

.gm-xmpp-user-actions [data-act="user"] {
	grid-column: 2;
	grid-row: 1;
}

converse-registration-form .input-group > [data-act="domain"] {
	grid-column: 2;
	grid-row: 2;
}

.gm-xmpp-domain-wrap {
	display: flex;
	grid-column: 1;
	grid-row: 2;
	align-items: center;
	width: 100%;
	margin: 0;
	border: 1px solid #665c54;
	border-radius: 6px;
	background: #1d2021;
	overflow: hidden;
}

.gm-xmpp-at {
	padding: 0 0.15rem 0 0.65rem;
	color: #a89984;
	background: transparent;
	border: 0;
}

.gm-xmpp-domain-select {
	flex: 1 1 auto;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0.5rem 0.45rem;
	border: 0;
	background: transparent;
	color: #ebdbb2;
	font: inherit;
}

.btn-primary,
button.btn-primary {
	background: #b8bb26 !important;
	border-color: #98971a !important;
	color: #1d2021 !important;
	font-weight: 700;
}

.btn-primary:hover,
button.btn-primary:hover {
	background: #d5c4a1 !important;
	border-color: #d5c4a1 !important;
	color: #1d2021 !important;
}

a.toggle-register-login,
a.register-account {
	color: #83a598;
}

.form-check-label,
.form-check {
	color: #d5c4a1;
}

.gm-xmpp-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.75rem;
	margin: 0.85rem 0 0;
	color: #d5c4a1;
}

.gm-xmpp-jid { margin: 0; flex: 1 1 auto; }

converse-registration-form .mb-3:has(input[name="password"]) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 0.45rem;
	align-items: stretch;
}

converse-registration-form .mb-3:has(input[name="password"]) > label {
	grid-column: 1 / -1;
	grid-row: 1;
}

converse-registration-form input[name="password"] {
	grid-column: 1;
	grid-row: 2;
	width: 100% !important;
}

.gm-xmpp-pass-actions { display: contents; }

.gm-xmpp-pass-actions [data-act="show"] { grid-column: 2; grid-row: 2; }
.gm-xmpp-pass-actions [data-act="gen"] { grid-column: 3; grid-row: 2; }

.gm-xmpp-pass-actions .gm-xmpp-btn,
converse-registration-form .input-group > [data-act="domain"] {
	white-space: nowrap;
	padding: 0.45rem 0.7rem;
}
.gm-xmpp-jid code {
	color: #fbf1c7;
	background: #3c3836;
	padding: 0.05em 0.3em;
	border-radius: 3px;
}

.gm-xmpp-passbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.gm-xmpp-btn {
	border: 1px solid #665c54;
	background: #3c3836;
	color: #ebdbb2;
	border-radius: 4px;
	padding: 0.28rem 0.55rem;
	font: inherit;
	cursor: pointer;
}
.gm-xmpp-btn:hover { background: #504945; }

.gm-xmpp-aid {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0.9rem 0 0;
	padding: 0.85rem 0 0.15rem;
	background: transparent;
	color: #d5c4a1;
	border: 0;
	border-top: 1px solid #665c54;
	border-radius: 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.gm-xmpp-aid-lead { margin: 0 0 0.55rem; color: #ebdbb2; }
.gm-xmpp-aid-list { margin: 0; padding-left: 1.15rem; }
.gm-xmpp-aid-list li { margin: 0 0 0.45rem; }
.gm-xmpp-aid code {
	color: #fbf1c7;
	background: #3c3836;
	padding: 0.05em 0.3em;
	border-radius: 3px;
}
