/* OnePower — wp-admin and login branding.
   Sits on top of the OnePower colour scheme (admin-colors.css): that file colours the menu, admin bar,
   buttons and links; this one adds the storefront type, the brand mark and the component accent. */

/* Block editor, WooCommerce and other React screens read these instead of the scheme. */
body.admin-color-onepower {
	--wp-admin-theme-color: #0A4737;
	--wp-admin-theme-color--rgb: 10, 71, 55;
	--wp-admin-theme-color-darker-10: #083A2D;
	--wp-admin-theme-color-darker-10--rgb: 8, 58, 45;
	--wp-admin-theme-color-darker-20: #052B21;
	--wp-admin-theme-color-darker-20--rgb: 5, 43, 33;
}

/* Type: Barlow for the interface, Barlow Condensed for page titles, as on the storefront. */
body.wp-admin,
body.wp-admin #wpadminbar *:not(.ab-icon):not([class*="dashicons"]),
body.login {
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body.wp-admin .wrap > h1,
body.wp-admin .wrap > .wp-heading-inline,
body.wp-admin .wrap h1.wp-heading-inline {
	font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: .01em;
	color: #050807;
}
body.wp-admin .postbox-header h2,
body.wp-admin .wrap h2.title {
	font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
}

/* Buttons: pill shapes like the storefront; the primary keeps the scheme's deep green. */
.wp-core-ui .button,
.wp-core-ui .button-primary,
.wp-core-ui .button-secondary,
body.wp-admin .wrap .page-title-action {
	border-radius: 999px;
	font-weight: 600;
}
.wp-core-ui .button-primary:focus,
.wp-core-ui .button:focus {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #13795B;
}

/* Surfaces: cards and tables on the paper background get the storefront border colour. */
body.wp-admin .postbox,
body.wp-admin .card,
body.wp-admin .wp-list-table,
body.wp-admin .notice {
	border-color: #DCE3E0;
}

/* Admin bar: the OnePower mark replaces the WordPress logo. */
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
	content: "";
	display: block;
	width: 22px;
	height: 15px;
	margin-top: 4px;
	background: url('../img/mark-white.svg') center / contain no-repeat;
}

/* ---- Login screen ------------------------------------------------------- */
body.login {
	background: radial-gradient(120% 80% at 85% -10%, #0C513E 0%, rgba(12, 81, 62, 0) 60%), #050807;
	color: #F3F6F4;
}
body.login h1 a {
	background: url('../img/logo_white.png') center / contain no-repeat;
	width: 240px;
	height: 40px;
	margin-bottom: 28px;
}
body.login form {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
	padding: 28px 28px 32px;
}
body.login label {
	font-weight: 600;
	color: #050807;
}
body.login form .input,
body.login input[type="text"],
body.login input[type="password"] {
	border-radius: 10px;
	border-color: #DCE3E0;
}
body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
	border-color: #0A4737;
	box-shadow: 0 0 0 1px #0A4737;
}
body.login .button-primary {
	background: #1ED68A;
	border-color: #1ED68A;
	color: #03130C;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 0 20px;
}
body.login .button-primary:hover,
body.login .button-primary:focus {
	background: #15B574;
	border-color: #15B574;
	color: #03130C;
}
body.login .button.wp-hide-pw .dashicons {
	color: #0A4737;
}
body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
	color: #9DB0A8;
}
body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
	color: #1ED68A;
}
body.login .message,
body.login .notice,
body.login #login_error {
	border-radius: 10px;
	color: #050807;
}
