/* Logging in and opening an account, the owner's „Teczki” of 2026-11-22 (inc/account-login.php,
   woocommerce/myaccount/form-login.php, account-login.js): two folders over one card in the dress
   of Dane do faktury's (account-billing.css), the fields with their labels inside them („Szron”),
   and a private or a company's account as the checkout's „Kupuję jako” cards (.checkout-profile,
   shop.css). Every rule is under .shop-login. */

/* The folders: the open one runs into the card under it. */
.shop-login-tabs{position:relative;z-index:1;display:flex;gap:6px;margin-bottom:-1px}
.shop-section .shop-login-tab{flex:0 1 330px;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:12px;row-gap:1px;align-items:center;padding:12px 18px 13px 14px;color:#56627a;text-decoration:none;background:#e9eff7;border:1px solid var(--line);border-radius:14px 14px 0 0;transition:background-color 150ms ease-out,color 150ms ease-out}
.shop-section .shop-login-tab:focus-visible{outline:2px solid var(--blue);outline-offset:-4px}
.shop-section .shop-login-tab.is-current{color:var(--navy);background:#eaf2fc;border-bottom-color:#eaf2fc}
.shop-section .shop-login-tab.is-current:first-child{box-shadow:inset 4px 0 0 var(--navy)}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login-tab:not(.is-current):hover{color:var(--navy);background:#e0e8f3}}
.shop-section .shop-login-tab:not(.is-current):active{background:#d7e1ef}
.shop-login-tab-icon{grid-row:1/3;width:36px;height:36px;display:grid;place-items:center;color:#56627a;background:#fff;border-radius:10px;transition:background-color 150ms ease-out,color 150ms ease-out}
.shop-login-tab-icon .shop-icon{width:18px;height:18px}
.shop-login-tab.is-current .shop-login-tab-icon{color:#fff;background:var(--navy)}
.shop-login-tab-name{font-size:15px;font-weight:800;line-height:1.3}
.shop-login-tab-peek{min-width:0;overflow:hidden;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}

/* The card, with the folders' navy edge down its left. */
.shop-login-card{padding:26px 28px 30px 34px;background:linear-gradient(180deg,#eaf2fc 0,#f5f9fe 120px,#fff 320px);border:1px solid var(--line);border-radius:20px;box-shadow:inset 4px 0 0 var(--navy),0 12px 38px rgba(9,24,71,.06)}
.shop-login.has-registration .shop-login-card{border-radius:0 20px 20px}
.shop-login-pane{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}
.shop-login-pane[hidden]{display:none}
.shop-login-main{container-type:inline-size;min-width:0}
.shop-login-head{margin:0 0 18px}
.shop-section .shop-login-head h2{margin:0;color:var(--navy);font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.shop-login-head p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.shop-login .woocommerce-notices-wrapper{margin:0 0 16px}
.shop-login .woocommerce-notices-wrapper:empty{display:none}
.shop-login form{display:grid;gap:14px;margin:0}
.shop-login form p,.shop-login .form-row{margin:0}

/* „Szron”: the label inside the field, over what is typed. Only the rows of a typed field — a box's
   row keeps its label beside it. */
.shop-section .shop-login .woocommerce-form-row{position:relative;min-width:0}
.shop-section .shop-login .woocommerce-form-row>label{position:absolute;z-index:1;top:8px;left:13px;right:13px;margin:0;overflow:hidden;color:var(--muted);font-size:11px;font-weight:700;line-height:1.3;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}
.shop-section .shop-login .woocommerce-form-row:has(.password-input)>label{right:56px}
.shop-section .shop-login .woocommerce-form-row .input-text,.shop-section .shop-login .woocommerce-form-row select{height:56px;min-height:56px;padding:23px 13px 7px;color:var(--navy);background-color:#fff;border-radius:12px;font-size:15px;font-weight:600;transition:border-color 150ms ease-out,box-shadow 150ms ease-out}
.shop-section .shop-login .woocommerce-form-row select{padding-right:38px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center/16px no-repeat;-webkit-appearance:none;appearance:none;cursor:pointer}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login .woocommerce-form-row .input-text:hover,.shop-section .shop-login .woocommerce-form-row select:hover{border-color:var(--navy2)}}
.shop-section .shop-login .woocommerce-form-row .input-text:focus,.shop-section .shop-login .woocommerce-form-row select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(45,98,220,.18)}
.shop-section .shop-login .woocommerce-form-row [aria-invalid="true"]{border-color:var(--error-line)}
.shop-section .shop-login .woocommerce-form-row [aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(194,56,74,.16)}

/* The office's telephone, beside the login and under what an account gives. */
.shop-section .shop-login-phone a{color:var(--navy);font-size:15px;font-weight:800;border-radius:4px;transition:color 150ms ease-out}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login-phone a:hover{color:var(--blue)}}
.shop-section .shop-login-phone a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* The login: its two fields side by side, then the box, the way to a new password and the button. */
.shop-login-fields,.shop-register-names,.shop-register-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
/* shop.css spans every row across the checkout's columns; here each grid places its own. */
.shop-section .shop-login .shop-login-fields>.form-row,.shop-section .shop-login .shop-register-names>.form-row,.shop-section .shop-login .shop-register-pair>.form-row{grid-column:auto}
.shop-login-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding-top:2px}
.shop-login-actions .lost_password{font-size:14px}
.shop-section .shop-login-actions .lost_password a{color:var(--blue);font-weight:750;border-radius:4px;transition:color 150ms ease-out}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login-actions .lost_password a:hover{color:var(--navy);text-decoration:underline;text-underline-offset:3px}}
.shop-section .shop-login-actions .lost_password a:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.shop-login-actions .primary-action{margin-left:auto}

/* The buttons: pressed, focused, and working once the form is sent. */
.shop-login [data-login-form="register"] .primary-action{justify-self:start}
.shop-section .shop-login .primary-action{position:relative;overflow:hidden;min-height:50px;gap:8px;padding:0 22px;font-size:15px;transition:background-color 150ms ease-out,transform 160ms cubic-bezier(.23,1,.32,1)}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login .primary-action:hover{background:#2453c2}}
.shop-section .shop-login .primary-action:active{transform:scale(.97)}
.shop-section .shop-login .primary-action:focus-visible{outline:3px solid rgba(45,98,220,.45);outline-offset:3px}
.shop-section .shop-login .primary-action[aria-disabled="true"]{cursor:progress}
.shop-section .shop-login .primary-action[aria-disabled="true"]:active{transform:none}
.shop-section .shop-login .primary-action[aria-disabled="true"]:after{content:"";position:absolute;left:0;bottom:0;width:40%;height:3px;background:rgba(255,255,255,.75);border-radius:3px;animation:shop-login-busy 1s linear infinite}
@keyframes shop-login-busy{from{transform:translateX(-100%)}to{transform:translateX(250%)}}

/* Caps Lock, under a password field while it has the focus. */
.shop-login-caps{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin-top:7px;padding:3px 8px;color:#7a5400;background:#fff3d6;border-radius:6px;font-size:12px;font-weight:700}
.shop-login-caps:empty{display:none}

/* The registration: the kind of account, a company's details, then the person's. */
.shop-register-sub{margin:6px 0 -4px;color:var(--navy);font-size:14px;font-weight:800;line-height:1.3}
.shop-register-kind{display:grid;gap:10px}
.shop-register-kind .shop-register-sub{margin:0}
.shop-register-kind .checkout-profile-note{white-space:normal}
.shop-register-company{display:grid;gap:10px}
.shop-register-company[hidden]{display:none}
.shop-register-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:start}
/* By id, as shop.css pins the checkout's invoice rows: the NIP and the name, the street, the postcode
   and the town, the country. */
.shop-login #billing_nip_field,.shop-login #billing_company_field,.shop-login #billing_address_1_field,.shop-login #billing_country_field{grid-column:span 2}
.shop-login #billing_postcode_field,.shop-login #billing_city_field{grid-column:span 1}

/* The NIP: Pobierz dane firmy inside its field, what the register said under it. */
.shop-section .shop-login #billing_nip_field .input-text{padding-right:172px}
.shop-section .shop-login #billing_nip_field>label{right:172px}
.shop-login #billing_nip_field .nip-lookup{display:block;margin:0}
.shop-login #billing_nip_field .nip-lookup[hidden]{display:none}
.shop-section .shop-login #billing_nip_field .nip-lookup-button{position:absolute;top:8px;right:8px;height:40px;display:inline-flex;align-items:center;padding:0 12px;color:#fff;background:var(--navy2);border:0;border-radius:8px;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color 150ms ease-out,transform 160ms cubic-bezier(.23,1,.32,1),opacity 150ms ease-out}
@media(hover:hover) and (pointer:fine){.shop-section .shop-login #billing_nip_field .nip-lookup-button:hover{background:var(--navy)}}
.shop-section .shop-login #billing_nip_field .nip-lookup-button:active{transform:scale(.97)}
.shop-section .shop-login #billing_nip_field .nip-lookup-button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.shop-section .shop-login #billing_nip_field .nip-lookup-button[aria-disabled="true"]{opacity:.7;cursor:progress}
.shop-section .shop-login #billing_nip_field .nip-lookup-button[aria-disabled="true"]:active{transform:none}
.shop-login #billing_nip_field .nip-lookup-note{display:block;margin:7px 0 0 2px;color:var(--navy2);font-size:12px;font-weight:600;line-height:1.45}
.shop-login #billing_nip_field .nip-lookup-note:empty{display:none}

/* The password's rule, ticked off as it is typed. */
.shop-register-rules{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;color:var(--muted);font-size:12px;font-weight:600}
.shop-register-rules span{display:inline-flex;align-items:center;gap:6px;transition:color 150ms ease-out}
.shop-register-rules span:before{content:"";width:14px;height:14px;flex:none;border:1.5px solid #b6bfcd;border-radius:50%;transition:background-color 150ms ease-out,border-color 150ms ease-out}
.shop-register-rules .is-met{color:var(--ok)}
.shop-register-rules .is-met:before{background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;border-color:var(--ok)}

/* Beside the form: the office's telephone, and beside the registration what an account gives. */
.shop-login-aside{align-self:start;padding:20px 20px 18px;background:#fff;border:1px solid var(--line);border-radius:14px}
.shop-login-aside.is-help{padding:18px 20px}
.shop-login-pane[data-login-pane="register"] .shop-login-aside{position:sticky;top:calc(var(--topline-h) + 96px)}
.shop-section .shop-login-benefits h3{margin:0 0 6px;color:var(--navy);font-size:15px;font-weight:800}
.shop-login-benefits ul{margin:0;padding:0;list-style:none}
.shop-login-benefits li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:9px 0;color:var(--navy);font-size:13.5px;font-weight:600;line-height:1.4}
.shop-login-benefits li+li{border-top:1px solid var(--line)}
.shop-login-square{width:34px;height:34px;flex:none;display:grid;place-items:center;color:var(--blue);background:var(--ice);border-radius:10px}
.shop-login-square .shop-icon{width:17px;height:17px}
.shop-login .shop-login-phone{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;color:var(--muted);font-size:13px;line-height:1.4}
.shop-login .shop-login-benefits+.shop-login-phone{margin-top:12px;padding-top:14px;border-top:1px solid var(--line)}
.shop-login-phone .shop-login-square{color:var(--navy);background:var(--soft)}

/* A pane opened, a company's details shown: in from below, briefly. */
.shop-login-pane.is-entering,.shop-register-company.is-entering{animation:shop-login-in 240ms cubic-bezier(.23,1,.32,1)}
@keyframes shop-login-in{from{opacity:0;transform:translateY(6px)}}

/* The main column's own width decides: a company's details two to a row, then one. */
@container (max-width:600px){
	.shop-register-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.shop-login #billing_nip_field,.shop-login #billing_company_field,.shop-login #billing_address_1_field,.shop-login #billing_country_field{grid-column:1/-1}
}
@container (max-width:520px){
	.shop-login-fields,.shop-register-names,.shop-register-pair{grid-template-columns:minmax(0,1fr)}
}
@container (max-width:400px){
	.shop-register-grid{grid-template-columns:minmax(0,1fr)}
	.shop-login #billing_nip_field,.shop-login #billing_company_field,.shop-login #billing_address_1_field,.shop-login #billing_postcode_field,.shop-login #billing_city_field,.shop-login #billing_country_field{grid-column:auto}
	.shop-section .shop-login #billing_nip_field .input-text{padding-right:13px}
	.shop-section .shop-login #billing_nip_field>label{right:13px}
	.shop-section .shop-login #billing_nip_field .nip-lookup-button{position:static;margin-top:8px}
}
@media(max-width:1060px){
	.shop-login-pane{grid-template-columns:minmax(0,1fr);gap:22px}
	.shop-login-aside{max-width:560px}
	.shop-login-pane[data-login-pane="register"] .shop-login-aside{position:static}
}
@media(max-width:560px){
	.shop-section .shop-login-tab{flex:1 1 0;padding:10px 10px 11px;column-gap:9px}
	.shop-login-tab-icon{width:30px;height:30px}
	.shop-login-tab-name{font-size:14px}
	.shop-login-card{padding:20px 16px 22px 20px}
	.shop-login.has-registration .shop-login-card{border-radius:0 0 18px 18px}
	.shop-login-actions .primary-action{width:100%;margin-left:0}
}
@media(max-width:440px){
	.shop-login-tab-peek{display:none}
	.shop-login-tab-icon{grid-row:auto}
	.shop-register-kind .checkout-profile-top{display:grid;grid-template-columns:auto auto minmax(0,1fr);column-gap:10px;row-gap:2px}
	.shop-register-kind .checkout-profile-note{grid-column:3;margin-left:0;text-align:left}
}
@media(prefers-reduced-motion:reduce){
	.shop-login-pane.is-entering,.shop-register-company.is-entering{animation:none}
	.shop-section .shop-login .primary-action[aria-disabled="true"]:after{width:100%;opacity:.5;animation:none}
	.shop-section .shop-login-tab,.shop-login-tab-icon,.shop-section .shop-login .primary-action,.shop-register-rules span,.shop-register-rules span:before{transition:none}
}
