/* Sign in and register: one tidy card (Ty, 25 Nov 2026: "make the sign in and register neater").
   A white card in the middle of the page; the two tabs are one switch; every box has an outline with its name above
   it; one bright button; "Remember me" and "Forgot password?" share a line. Loaded after sabiz-look.css. */

/* a peaceful picture behind the card (Ty, 26 Nov 2026): misty vineyards at first light, with a thin white veil so the
   card and its shadow stay crisp. The picture is served from this site. */
.sign-in-wrapper { padding: 56px 16px 80px !important; min-height: calc(100vh - 90px); display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, .34) 100%), #dfe7e2 url(img/auth-bg.jpg) center / cover no-repeat !important; }
/* On a phone the theme turns the card's holder into a full-height flex box, which stretched the white card far below
   its last line and made it narrower than its holder (Ty, 26 Nov 2026: "fix this on mobile view"). The holder is a
   plain block as tall as its content at every width, and the card fills it. */
.sign-in-wrapper .login-container { flex: 0 1 440px; display: block !important; height: auto !important; min-height: 0 !important; align-self: center; }
.sign-in-wrapper .login-content { width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; margin: 0 !important; }
.sign-in-wrapper .login-container { max-width: 440px; margin: 0 auto; float: none; width: 100%; padding: 0; }
.sign-in-wrapper .login-content { background: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 32px 32px 28px; box-shadow: 0 30px 70px rgba(20, 40, 30, .22); animation: sb-rise .9s var(--sb-ease) both; }
.sign-in-wrapper .login-content::before { content: "Welcome to SA Biz Network"; display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--sb-ink); margin: 0 0 18px; }

/* the two tabs as one switch */
.login-tabs { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; background: #eef0ef; border-radius: 12px; padding: 4px; margin: 0 0 24px !important; animation: none; }
.login-tabs li { opacity: 1 !important; padding: 0 !important; margin: 0 !important; }
.login-tabs li h3 { margin: 0; line-height: 1; }
.login-tabs li h3 a, .login-tabs li:not(.active) h3 a, .login-tabs li.active h3 a { display: block; text-align: center; padding: 11px 8px; border-radius: 9px; font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--sb-ink-2); border: 0; text-decoration: none; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.login-tabs li.active h3 a { background: #fff; color: var(--sb-ink); box-shadow: 0 1px 3px rgba(5, 7, 6, .14); }
.login-tabs li:not(.active) h3 a:hover { color: var(--sb-ink); }

.sign-in-box { padding: 0 !important; background: transparent !important; box-shadow: none !important; animation: none; }
.sign-in-box form.sign-in-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.sign-in-box form.sign-in-form > .form-group, .sign-in-box form.sign-in-form > .toggle-password,
.sign-in-box form.sign-in-form > .primary-role-fields, .sign-in-box form.sign-in-form > .woocommerce-privacy-policy-text,
.sign-in-box .fields-wrapper { width: 100%; }

/* the name of each box sits above it (in the page's code it comes after the box), and the line that says how
   strong a new password is sits below the box */
.sign-in-box .form-group { display: flex; flex-direction: column; margin: 0 0 16px !important; padding: 0 !important; position: relative; }
.sign-in-box .form-group > label { order: 1; }
.sign-in-box .form-group > input { order: 2; }
.sign-in-box .form-group > .woocommerce-password-strength { order: 3; }
.sign-in-box .form-group > .woocommerce-password-hint { order: 4; }
.sign-in-box .form-group > button { order: 5; }
.sign-in-box .form-group label { position: static !important; transform: none !important; top: auto !important; left: auto !important; font-size: 13px !important; font-weight: 600 !important; color: var(--sb-ink) !important; margin: 0 0 6px !important; line-height: 1.3; pointer-events: auto; opacity: 1 !important; }
.sign-in-box input[type="text"], .sign-in-box input[type="email"], .sign-in-box input[type="password"] {
	height: 48px !important; border: 1px solid var(--sb-line-2) !important; border-radius: 10px !important; padding: 0 14px !important; background: #fff !important;
	font-size: 15px !important; font-weight: 500; color: var(--sb-ink) !important; box-shadow: none !important; width: 100%; margin: 0 !important;
	transition: border-color .25s ease, box-shadow .35s var(--sb-ease);
}
.sign-in-box input[type="text"]:focus, .sign-in-box input[type="email"]:focus, .sign-in-box input[type="password"]:focus { border-color: var(--sb-green) !important; box-shadow: 0 0 0 4px rgba(10, 127, 34, .16) !important; outline: 0; }

/* the eye that shows the password sits inside its box, on the right */
.sign-in-box .toggle-password { position: relative; display: block; }
.sign-in-box .toggle-password input { padding-right: 46px !important; }
.sign-in-box .toggle-password .show-toggle-password { position: absolute !important; right: 14px !important; top: 39px !important; bottom: auto !important; color: var(--sb-ink-2); cursor: pointer; }

.sign-in-box .form-group:has(> button) { margin: 6px 0 0 !important; }
.sign-in-box .buttons.button-2 { height: 50px; font-size: 15px; font-weight: 650; background: var(--sb-neon) !important; color: #04130a !important; width: 100%; }
.sign-in-box .buttons.button-2 i { color: #04130a !important; }
.sign-in-box .buttons.button-2:hover { background: #4dff70 !important; box-shadow: 0 10px 30px rgba(35, 247, 77, .35); }
.sign-in-box .form-info { margin: 16px 0 0 !important; padding: 0 !important; width: auto; }
.sign-in-box .form-info label, .sign-in-box .md-checkbox label { color: var(--sb-ink) !important; font-size: 14px; }
.sign-in-box .forgot-password { margin: 16px 0 0 !important; padding: 0 !important; width: auto; }
.sign-in-box .forgot-password i { display: none; }
.sign-in-box .forgot-password a { color: var(--sb-green) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* how strong the new password is: a quiet line, not a block */
.sign-in-box .woocommerce-password-strength { margin: 8px 0 0; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-align: left; border: 0; background: #eef0ef; color: var(--sb-ink); }
.sign-in-box .woocommerce-password-strength.strong { background: var(--sb-green-soft); color: var(--sb-green-d); }
.sign-in-box .woocommerce-password-strength.good { background: #fff4d6; color: #7a5600; }
.sign-in-box .woocommerce-password-strength.short, .sign-in-box .woocommerce-password-strength.bad { background: #fdecea; color: #a1241b; }
.sign-in-box .woocommerce-password-hint { display: block; margin: 6px 0 0; font-size: 13px; color: var(--sb-ink-2); }
.sign-in-box .woocommerce-privacy-policy-text { margin: 4px 0 14px; }
.auth-notices .woocommerce-error, .auth-notices .woocommerce-message, .auth-notices .woocommerce-info { border-radius: 10px; margin: 0 0 18px; font-size: 14px; }

/* nothing white behind the card: the theme drew its own white panel there */
.sign-in-wrapper .login-container, .woocommerce > section:has(> .sign-in-wrapper) { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* asking for a new password, and setting it. The theme already puts this form in a white card with a heading, so
   the form itself is plain; only its box and button are dressed like the sign-in ones. */
.woocommerce-ResetPassword { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.woocommerce-ResetPassword p { color: var(--sb-ink); font-size: 15px; line-height: 1.55; }
.woocommerce-ResetPassword label { font-size: 13px !important; font-weight: 600 !important; color: var(--sb-ink) !important; margin: 0 0 6px !important; display: block; }
.woocommerce .woocommerce-ResetPassword input.input-text, .woocommerce-ResetPassword input[type="text"], .woocommerce-ResetPassword input[type="password"], .woocommerce-ResetPassword input[type="email"] {
	height: 48px !important; border: 1px solid var(--sb-line-2) !important; border-radius: 10px !important; padding: 0 14px !important; width: 100% !important; font-size: 15px !important; font-weight: 500; background: #fff !important; color: var(--sb-ink) !important; box-shadow: none !important; }
.woocommerce .woocommerce-ResetPassword input.input-text:focus { border-color: var(--sb-green) !important; box-shadow: 0 0 0 4px rgba(10, 127, 34, .16) !important; outline: 0; }
.woocommerce-ResetPassword .form-row { width: 100% !important; float: none !important; margin: 0 0 16px !important; padding: 0 !important; }
.woocommerce .woocommerce-ResetPassword .button, .woocommerce-ResetPassword button[type="submit"] { height: 50px !important; width: 100%; background: var(--sb-neon) !important; color: #04130a !important; font-weight: 650; font-size: 15px; border: 0 !important; margin-top: 4px; }

@media (max-width: 480px) {
	.sign-in-wrapper { padding: 28px 12px 56px !important; }
	.sign-in-wrapper .login-content { padding: 24px 20px 22px; border-radius: 16px; }
	.sign-in-wrapper .login-content::before { font-size: 20px; }
}

/* Register: first name and last name side by side, everything else full width */
.sign-in-box .primary-role-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sign-in-box .primary-role-fields > .fields-wrapper { grid-column: 1 / -1; min-width: 0; }
.sign-in-box .primary-role-fields > .fields-wrapper:nth-child(1), .sign-in-box .primary-role-fields > .fields-wrapper:nth-child(2) { grid-column: auto; }
@media (max-width: 380px) { .sign-in-box .primary-role-fields > .fields-wrapper:nth-child(1), .sign-in-box .primary-role-fields > .fields-wrapper:nth-child(2) { grid-column: 1 / -1; } }
