/* Сторінки акаунта boraah: вхід, реєстрація, відновлення, профіль. Стандартна розмітка Joomla в рамці auth_frame.php */
.brh-auth{--a-ink:#171a18;--a-muted:#646963;--a-line:#d9dcd6;--a-dark:#26372b;--a-dark2:#1f2d23;--a-lime:#d5fa8d;--a-cream:#f7f7f3;padding:56px 0 110px;color:var(--a-ink)}
.brh-auth *,.brh-auth *:before,.brh-auth *:after{box-sizing:border-box}
.brh-auth__grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:start}

/* Ліва панель */
.brh-auth__side{position:sticky;top:110px;background:var(--a-dark);color:#eef4e8;border-radius:22px;padding:40px 38px;box-shadow:14px 14px 0 #e2ebdc;overflow:hidden}
.brh-auth__side:after{content:"✳";position:absolute;right:-18px;bottom:-46px;font:400 190px/1 Georgia,serif;color:rgba(213,250,141,.08);pointer-events:none}
.brh-auth__overline{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#c7d3c1}
.brh-auth__overline i{width:8px;height:8px;border-radius:50%;background:var(--a-lime);box-shadow:0 0 0 4px rgba(213,250,141,.22)}
.brh-auth__overline--dark{color:var(--a-muted)}
.brh-auth__side-title{margin:22px 0 28px;font-size:clamp(30px,3vw,42px);line-height:1;letter-spacing:-.055em;font-weight:900;color:#fff}
.brh-auth__side-title em{font-family:Georgia,serif;font-weight:400;font-style:italic;color:var(--a-lime)}
.brh-auth__perks{list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.14)}
.brh-auth__perks li{display:grid;grid-template-columns:38px 1fr;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid rgba(255,255,255,.14);font-size:15px;line-height:1.45;color:#dfe8d9}
.brh-auth__perks b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid rgba(213,250,141,.45);color:var(--a-lime);font-size:10px;letter-spacing:.06em}
.brh-auth__guest{position:relative;display:block;margin-top:28px;padding:20px 54px 20px 22px;border-radius:16px;background:var(--a-lime);color:#1d2a12;text-decoration:none;transition:transform .2s}
.brh-auth__guest:hover{transform:translateY(-2px);color:#1d2a12}
.brh-auth__guest strong{display:block;font-size:16px;font-weight:900;letter-spacing:-.02em}
.brh-auth__guest span{display:block;margin-top:4px;font-size:13px;line-height:1.5;color:#3b4a2c}
.brh-auth__guest em{position:absolute;right:22px;top:50%;transform:translateY(-50%);font-style:normal;font-size:22px}

/* Права частина */
.brh-auth__main{min-width:0;max-width:620px}
.brh-auth__title{margin:16px 0 14px;font-size:clamp(40px,5vw,66px);line-height:.95;letter-spacing:-.06em;font-weight:900;color:var(--a-ink)}
.brh-auth__title em{font-family:Georgia,serif;font-weight:400;font-style:italic;color:#ec9f1c}
.brh-auth__lead{margin:0 0 28px;max-width:520px;color:var(--a-muted);font-size:16px;line-height:1.65}
.brh-auth__card{background:#fff;border:1px solid var(--a-line);border-radius:20px;padding:32px 32px 28px}
.brh-auth__links{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:22px}
.brh-auth__links a{font-size:14px;font-weight:800;color:var(--a-ink);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.brh-auth__links a:hover{color:#456248}

/* Стандартна розмітка Joomla всередині картки */
.brh-auth__card .page-header,.brh-auth__card>div>h1,.brh-auth__card .com-users-registration-complete h1{display:none}
.brh-auth__card form{margin:0;padding:0;background:none;border:0;box-shadow:none}
.brh-auth__card fieldset{margin:0 0 8px;padding:0;border:0;min-width:0}
.brh-auth__card legend{float:none;width:100%;margin:0 0 18px;padding:0 0 12px;border-bottom:1px dashed var(--a-line);font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--a-muted)}
.brh-auth__card fieldset+fieldset legend{margin-top:18px}
.brh-auth__card fieldset>p{margin:0 0 18px;color:var(--a-muted);font-size:14px;line-height:1.6}
.brh-auth__card .control-group{margin:0 0 18px}
.brh-auth__card .control-label{margin:0 0 7px}
.brh-auth__card .control-label label,.brh-auth__card label{font-size:13px;font-weight:800;color:var(--a-ink)}
.brh-auth__card .star,.brh-auth__card .required-star{color:#c46b13}
.brh-auth__card .spacer,.brh-auth__card #member-registration .spacer{display:none}
.brh-auth__card input.form-control,.brh-auth__card input[type=text],.brh-auth__card input[type=email],.brh-auth__card input[type=password],.brh-auth__card input[type=tel],.brh-auth__card input[type=url],.brh-auth__card select,.brh-auth__card textarea{
	width:100%;height:52px;margin:0;padding:0 16px;border:1px solid var(--a-line);border-radius:12px;background:var(--a-cream);color:var(--a-ink);font:inherit;font-size:15px;box-shadow:none;transition:border-color .15s,background .15s}
.brh-auth__card textarea{height:auto;min-height:110px;padding:14px 16px}
.brh-auth__card input:focus,.brh-auth__card select:focus,.brh-auth__card textarea:focus{outline:none;border-color:var(--a-dark);background:#fff;box-shadow:0 0 0 3px rgba(213,250,141,.6)}
.brh-auth__card input.invalid,.brh-auth__card .form-control-danger{border-color:#c0392b;background:#fff6f4}
.brh-auth__card .form-control-feedback,.brh-auth__card .invalid-feedback{display:block;margin-top:6px;font-size:12px;color:#b03a26}
.brh-auth__card .input-group{display:flex;align-items:stretch;gap:0}
.brh-auth__card .input-group input{border-top-right-radius:0;border-bottom-right-radius:0}
.brh-auth__card .input-group .btn,.brh-auth__card .input-password-toggle{display:inline-flex;align-items:center;justify-content:center;width:56px;height:52px;min-height:0;margin:0;padding:0;border:1px solid var(--a-line);border-left:0;border-radius:0 12px 12px 0;background:#fff;color:var(--a-ink)}
.brh-auth__card .input-group .btn:hover{background:var(--a-lime)}
.brh-auth__card .password-group,.brh-auth__card .controls>.input-group{flex:1 1 100%;width:100%}
.brh-auth__card .input-group input{flex:1;min-width:0}
.brh-auth__card .input-password-toggle [class^=icon-]{display:none}
.brh-auth__card .input-password-toggle:before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
.brh-auth__card .input-group .btn .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.brh-auth__card .form-text,.brh-auth__card small{display:block;margin-top:6px;color:var(--a-muted);font-size:12px;line-height:1.5}
.brh-auth__card meter,.brh-auth__card .password-strength{width:100%}
.brh-auth__card .form-check{display:flex;align-items:center;gap:10px;margin:4px 0 20px;padding:0}
.brh-auth__card .form-check-input,.brh-auth__card input[type=checkbox]{float:none;width:18px;height:18px;margin:0;accent-color:var(--a-dark)}
.brh-auth__card .form-check-label{font-weight:700}
.brh-auth__card .controls{display:flex;flex-wrap:wrap;gap:12px}
.brh-auth__card .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:14px 26px;border:1px solid transparent;border-radius:12px;font:inherit;font-size:15px;font-weight:900;line-height:1.2;text-decoration:none;cursor:pointer;transition:transform .15s,background .15s,filter .15s}
.brh-auth__card .btn:not(.input-password-toggle) [class^=icon-]{display:none}
.brh-auth__card .btn-primary{width:100%;background:var(--a-dark);color:#f7f9f2}
.brh-auth__card .btn-primary:after{content:"→";font-size:20px;margin-left:auto}
.brh-auth__card .btn-primary:hover{background:#456248;color:#fff;transform:translateY(-1px)}
.brh-auth__card .btn-secondary,.brh-auth__card .btn-danger{background:#fff;border-color:var(--a-line);color:var(--a-ink)}
.brh-auth__card .btn-secondary:hover,.brh-auth__card .btn-danger:hover{background:var(--a-cream)}
.brh-auth__card .btn-secondary svg,.brh-auth__card .btn-secondary img{width:20px;height:20px}
.brh-auth__card .com-users-login__submit{margin-bottom:12px}
.brh-auth__card .com-users-login__submit .btn-secondary{width:100%;min-height:48px;font-size:13px}
.brh-auth__card .com-users-profile__edit-submit .btn-primary{width:auto;flex:1}
/* Посилання під формою входу */
.brh-auth__card .com-users-login__options{display:flex;flex-wrap:wrap;gap:8px 22px;margin:22px 0 0;padding:20px 0 0;border-top:1px dashed var(--a-line)}
.brh-auth__card .list-group-item{padding:0;border:0;background:none;font-size:14px;font-weight:800;color:var(--a-ink);text-decoration:none;border-bottom:1px solid transparent}
.brh-auth__card .list-group-item:hover{border-bottom-color:currentColor}
.brh-auth__card .com-users-login__register{margin-left:auto;color:#456248}
/* Профіль */
.brh-auth__card .com-users-profile__edit.btn-toolbar{float:none;display:block;list-style:none;margin:0 0 22px;padding:0}
.brh-auth__card .com-users-profile__edit .btn-group{display:block}
.brh-auth__card dl{display:grid;grid-template-columns:minmax(140px,.8fr) 1.2fr;margin:0}
.brh-auth__card dt,.brh-auth__card dd{margin:0;padding:12px 0;border-bottom:1px dashed var(--a-line);font-size:14px}
.brh-auth__card dt{color:var(--a-muted);font-weight:700}
.brh-auth__card dd{font-weight:800;text-align:right}
/* Повідомлення Joomla над формою */
.brh-auth .alert{border-radius:14px}

@media (max-width:991px){
	.brh-auth{padding:28px 0 80px}
	.brh-auth__grid{grid-template-columns:1fr;gap:34px}
	.brh-auth__main{order:-1;max-width:none}
	.brh-auth__side{position:static;padding:30px 26px}
}
@media (max-width:600px){
	.brh-auth__card{padding:22px 18px}
	.brh-auth__card dl{grid-template-columns:1fr}
	.brh-auth__card dd{text-align:left;padding-top:0}
	.brh-auth__card .com-users-login__register{margin-left:0}
}
