/*
Theme Name: 150 Peel St
Theme URI: http: //150peel.com.au/
Description: This is a custom child theme for 50 peel
Author: Sinead H
Author URI: http: //150peel.com.au/
Template: salient
Version: 2.0.0
*/

@import url("../salient/style.css");

/* =========================================================================
   150 Peel - login screen

   Desktop: the login form fills the left half, the two no-account cards
   stack on the right, and the two sides are the same height.
   Mobile: one column, everything inside the first screen, no scrolling.

   Ancestors, outermost first:
     .container-wrap > .container.main-content > .row > .urcr-access-card

   .urcr-access-card belongs to User Registration and is styled from an inline
   <style> block in the page with max-width:800px !important and
   margin:24px auto !important. Both have to be overridden by name or the
   layout can never use the full width of the frame.
   ========================================================================= */

/* Ancestor reset -------------------------------------------------------- */

body:has(.peel-login-wrap) .container-wrap,
body:has(.peel-login-wrap) .container.main-content,
body:has(.peel-login-wrap) .row {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	background: transparent !important;
}

body:has(.peel-login-wrap) .urcr-access-card {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block !important;
}

/* wpautop leaves an empty paragraph above the banner. */
.peel-login-wrap > p:empty {
	display: none !important;
}

/* The building photo is a wide landscape crop that suits neither column. */
.peel-login-banner {
	display: none !important;
}

/* Shell ----------------------------------------------------------------- */

.peel-login-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 16px 14px 22px;
	background: #fff;
	border: none;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
}

.peel-login-inner {
	padding: 0;
}

.peel-login {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	padding: 0;
	text-align: center;
}

/* The logo, "Login Page" heading and the restricted-content line are all
   removed. The form carries its own heading, which leaves room for the
   no-account cards to sit on the first screen. */

.peel-login-logo,
.peel-login-title,
.peel-login-sub,
.peel-login > p:empty {
	display: none !important;
}

.peel-login-card {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	text-align: left;
}

/* =========================================================================
   The split: login form and the no-account cards

   Markup comes from peel_wrap_login_split() so the two are always siblings:
     .peel-login-split > .peel-login-split__form + .peel-public-links
   ========================================================================= */

.peel-login-split {
	display: grid;
	gap: 14px;
	text-align: left;
}

.peel-login-split__heading {
	font-size: 19px;
	line-height: 1.2;
	font-weight: 700;
	color: #10191e;
	margin: 0 0 12px;
	letter-spacing: .2px;
	text-align: center;
}

/* -------------------------------------------------------------------------
   Desktop: form left, cards right, matching heights
   ---------------------------------------------------------------------- */

@media (min-width: 900px) {

	.peel-login-wrap { padding: 44px 40px 52px; }

	.peel-login { max-width: 1060px; }

	.peel-login-split {
		grid-template-columns: 1fr 1fr;
		column-gap: 36px;
		align-items: stretch;
	}

	.peel-login-split__form {
		background: #fff;
		border: 1px solid #e2eaef;
		border-radius: 12px;
		padding: 30px 32px;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.peel-login-split__heading {
		font-size: 24px;
		margin-bottom: 18px;
	}

	.peel-public-links {
		display: flex;
		flex-direction: column;
		margin: 0 !important;
	}
}

@media (min-width: 1280px) {
	.peel-login { max-width: 1140px; }
	.peel-login-split { column-gap: 44px; }
	.peel-login-split__form { padding: 36px 40px; }
}

/* -------------------------------------------------------------------------
   Short screens
   ---------------------------------------------------------------------- */

@media (max-height: 700px) and (max-width: 899px) {
	.peel-login-wrap { padding-top: 12px; padding-bottom: 16px; }
	.peel-login-split__heading { font-size: 17px; margin-bottom: 8px; }
}

/* =========================================================================
   User Registration plugin form, scoped inside our wrapper
   ========================================================================= */

.peel-login .user-registration,
.peel-login .user-registration .ur-frontend-form,
.peel-login .user-registration form {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.peel-login .user-registration .ur-form-row {
	margin-bottom: 12px !important;
}

.peel-login .user-registration label,
.peel-login .user-registration .ur-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	margin-bottom: 5px;
	color: #33424a;
}

.peel-login .user-registration input[type="text"],
.peel-login .user-registration input[type="password"],
.peel-login .user-registration input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	/* 16px keeps iOS from zooming the page when a field is focused */
	font-size: 16px;
	line-height: 1.3;
	padding: 12px 13px;
	border: 1px solid #d5dfe4;
	border-radius: 9px;
	background: #f6f9fb;
	color: #23323a;
	outline: none;
}

.peel-login .user-registration input:focus {
	border-color: #08a6cc;
	box-shadow: 0 0 0 3px rgba(8, 166, 204, .15);
	background: #fff;
}

/* Remember me and lost password share one line rather than stacking. */
.peel-login .user-registration .ur-login-remember-me,
.peel-login .user-registration .ur-remember-and-forgot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: nowrap;
	margin: 4px 0 10px;
	font-size: 13px;
}

.peel-login .user-registration .ur-login-remember-me label,
.peel-login .user-registration .ur-remember-and-forgot label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.peel-login .user-registration input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #08a6cc;
	flex: 0 0 auto;
}

.peel-login .user-registration .ur-submit-button,
.peel-login .user-registration .ur-submit-button input[type="submit"],
.peel-login .user-registration button[type="submit"],
.peel-login .user-registration input[type="submit"] {
	display: block;
	width: 100%;
	padding: 13px 16px !important;
	border: none !important;
	border-radius: 9px !important;
	background: #08a6cc !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, transform .02s ease;
}

.peel-login .user-registration input[type="submit"]:hover {
	background: #0893b4 !important;
}

.peel-login .user-registration input[type="submit"]:active {
	transform: translateY(1px);
}

.peel-login .user-registration .ur-button-container,
.peel-login .user-registration .ur-form-grid {
	margin-top: 8px;
}

.peel-login .user-registration a {
	color: #08a6cc;
	text-decoration: none;
}

.peel-login .user-registration a:hover {
	text-decoration: underline;
}

/* Messages */

.peel-login .user-registration .ur-message,
.peel-login .user-registration .ur-error,
.peel-login .user-registration .ur-success {
	margin-bottom: 12px;
	border-radius: 9px;
	padding: 11px 13px;
	font-size: 14px;
	text-align: left;
}

.peel-login .user-registration .ur-error {
	background: #fff4f4;
	border: 1px solid #f3c2c2;
	color: #a40000;
}

.peel-login .user-registration .ur-success {
	background: #f1fff6;
	border: 1px solid #bfe8c9;
	color: #126b2a;
}

/* Back to Home link */

.peel-back-home {
	display: inline-block;
	margin-top: 12px;
	color: #08a6cc;
	text-decoration: none;
}

.peel-back-home:hover { text-decoration: underline; }

/* reCAPTCHA */

.peel-login .g-recaptcha { transform: none; }
.peel-login .user-registration .ur-recaptcha-wrap { text-align: center; }

@media screen and (max-width: 575px) {
	body.user-registration-membership_page_user-registration-login-forms #user-registration:not(.user-registration-MyAccount),
	body.user-registration-membership_page_user-registration-login-forms .user-registration:not(.user-registration-MyAccount),
	body.user-registration-page #user-registration:not(.user-registration-MyAccount),
	body.user-registration-page .user-registration:not(.user-registration-MyAccount) {
		padding: 0px !important;
	}
}
