/* Админ кіру беті (тек index.php-да жүктеледі). Форманың өзі: block/sign_form.php */
body:has(.u_sign){ background: #f6f7f5; }
body:has(.u_sign) .app{ padding: 0; min-height: 100vh; min-height: 100svh; }

.u_sign{
	min-height: 100vh; min-height: 100svh;
	display: flex; align-items: center; justify-content: center;
	padding: 40px 24px;
	box-sizing: border-box;
}
.lg_wrap{
	width: 100%; max-width: 980px; min-height: 600px;
	display: grid; grid-template-columns: 1fr 1fr;
	background: #fff; border-radius: 24px; overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,.06), 0 0 0 1px rgba(28,31,29,.06);
}

/* ---------- Бренд жағы ---------- */
.lg_side{
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: 44px 44px 36px;
	color: #fff;
	background: #0EA768;
}
.lg_side > *{ position: relative; z-index: 1; }

.lg_brand{ display: flex; align-items: center; gap: 12px; }
.lg_logo{ width: 56px; height: 56px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.lg_logo img{ display: block; width: 40px; height: 40px; }
.lg_name{ display: flex; flex-direction: column; justify-content: center; gap: 4px; font-family: 'Nunito', sans-serif; font-style: italic; font-weight: 600; font-size: 26px;  line-height: 1; }
.lg_name > *{ display: block; line-height: 1; }
.lg_name b{ font-weight: 600; color: #d8ffe9; }
/* Екінші жол: админде "Admin", dev-те "Developer" (сөзі беттің өзінде) */
.lg_name small{ font-size: 14px; font-weight: 600;  opacity: .8; }

.lg_slogan{ margin: 0 0 28px; font-size: 32px; line-height: 1.2; font-weight: 500; color: #fff; }
.lg_feats{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lg_feats li{ display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; color: rgba(255,255,255,.95); }
.lg_feats i{ width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 17px; }
.lg_side_f{ font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- Форма жағы ---------- */
.lg_main{ display: flex; flex-direction: column; justify-content: center; padding: 48px 52px 28px; }
.u_sign .usign_c{ max-width: 380px; width: 100%; margin: auto; }
.lg_head{ margin-bottom: 28px; }
.lg_badge{ display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 30px; background: #e3f5ec; color: #0EA768; font-size: 13px; font-weight: 600; }
.lg_h{ margin: 16px 0 8px; font-size: 28px; line-height: 1.2; font-weight: 500; color: #1c1f1d; }
.lg_p{ margin: 0; font-size: 15px; line-height: 1.45; color: #545a56; }

.u_sign .usign_cn{ margin-top: 0; }
.u_sign .form_im{ margin-top: 16px; }
.u_sign .form_im:first-child{ margin-top: 0; }
.u_sign .form_im .form_txt{ min-height: 56px; border-radius: 14px; background: #f6f7f5; border-color: #e6e8e4; font-size: 16px; }
.u_sign .form_im .form_txt:hover{ background: #fff; border-color: #d5d9d5; }
.u_sign .form_im .form_txt:focus{ background: #fff; border-color: #0EA768; box-shadow: 0 0 0 4px rgba(14,167,104,.14); }
.u_sign .form_im:focus-within .form_icon{ color: #0EA768; }
.u_sign .sg_otp{ padding-left: 16px !important; }

.u_sign .sg_box .btn.sg_btn{
	min-height: 56px; margin-top: 6px; border-radius: 14px;
	background: #0EA768; color: #fff; font-size: 16px; font-weight: 600;
	box-shadow: none;
	transition: background-color .15s, transform .12s;
}
.u_sign .sg_box .btn.sg_btn:hover, .u_sign .sg_box .btn.sg_btn:focus-visible{ background: #0c8f59; color: #fff; }
.u_sign .sg_btn:active{ transform: scale(.985); }
.u_sign .sg_btn i{ margin: 0; }

.u_sign .si_blc_bn{ justify-content: center; margin-top: 20px; }
.u_sign .sg_forgot{ min-height: 0; padding: 4px 8px; text-decoration: none; color: #545a56; font-size: 14px; font-weight: 600; }
.u_sign .sg_forgot:hover{ color: #0EA768; background: transparent; }

.lg_made{ align-self: center; margin-top: 28px; font-size: 13px; color: #767c78; }
.gprog_bl.gp_made{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #767c78; font-size: 13px; font-weight: 600; text-decoration: none; }
.gprog_bl.gp_made:hover{ color: #0EA768; text-decoration: none; }
.gprog_bl.gp_made .gprog_heart{ position: relative; width: auto; height: auto; margin: 0; font-size: 13px; color: #e5484d; line-height: 1; display: inline-flex; animation: gp_beat 1.4s ease-in-out infinite; }
.gprog_bl.gp_made .gprog_heart svg{ display: block; width: 13px; height: 13px; fill: currentColor; }
@keyframes gp_beat{ 0%,40%,100%{ transform: scale(1) } 20%{ transform: scale(1.25) } }
@media (prefers-reduced-motion: reduce){ .gp_made .gprog_heart{ animation: none; } }

/* ---------- Планшет ---------- */
@media (max-width: 900px){
	.lg_wrap{ grid-template-columns: 1fr; max-width: 480px; min-height: 0; }
	.lg_side{ padding: 28px 28px; gap: 0; }
	.lg_side_t, .lg_side_f{ display: none; }
	.lg_brand{ justify-content: center; }
	.lg_main{ padding: 34px 32px 24px; }
	.lg_head{ text-align: center; }
}

/* ---------- Телефон ---------- */
@media (max-width: 500px){
	.u_sign{ align-items: flex-start; padding: 0; }
	.lg_wrap{ border-radius: 0; box-shadow: none; min-height: 100vh; min-height: 100svh; background: #fff; display: flex; flex-direction: column; }
	.lg_side{ padding: calc(34px + env(safe-area-inset-top)) 24px 54px; }
	.lg_main{ flex: 1; margin-top: -28px; border-radius: 26px 26px 0 0; background: #fff; padding: 32px 20px calc(20px + env(safe-area-inset-bottom)); position: relative; z-index: 2; justify-content: flex-start; }
	.u_sign .usign_c{ margin: 0 auto; }
	.lg_h{ font-size: 26px; }
	.lg_made{ margin-top: auto; padding-top: 24px; }
}
