/* AKBSTOCK Customer Portal - Secure authentication UI */
.akbstock-auth-page {
    --akb-brand:#327692;
    --akb-brand-hover:#285f76;
    --akb-brand-soft:#eaf4f8;
    --akb-ink:#263746;
    --akb-text:#4d5d69;
    --akb-muted:#7d8b96;
    --akb-line:#dce6eb;
    --akb-success:#228a66;
    --akb-danger:#b64747;
    color:var(--akb-text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    padding:38px 18px 70px;
}
.akbstock-auth-page * { box-sizing:border-box; }

.akbstock-auth-shell {
    max-width:820px;
    margin:0 auto;
    background:#fff;
    border:1px solid var(--akb-line);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 16px 45px rgba(38,55,70,.08);
}
.akbstock-auth-form-panel { padding:38px 52px 46px; min-width:0; }

.akbstock-auth-brand {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin:0 auto 28px;
}
.akbstock-auth-logo-link { display:inline-block; line-height:0; }
.akbstock-auth-logo { width:230px; max-width:100%; height:auto; display:block; }
.akbstock-auth-tagline {
    display:block;
    width:100%;
    margin-top:7px;
    color:var(--akb-muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.20em;
    text-align:center;
}

.akbstock-auth-tabs {
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    margin:0 0 30px;
    border-radius:7px;
    overflow:hidden;
    background:#c9dfe7;
}
.akbstock-auth-tab {
    border:0;
    min-height:58px;
    padding:12px 18px;
    cursor:pointer;
    background:#c9dfe7;
    color:#0d5b78;
    font-size:18px;
    font-weight:500;
}
.akbstock-auth-tab.is-active {
    background:var(--akb-brand);
    color:#fff;
}

.akbstock-auth-pane[hidden] { display:none!important; }
.akbstock-auth-form { display:grid; gap:22px; }
.akbstock-name-row {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.akbstock-field {
    position:relative;
    width:100%;
}
.akbstock-field input {
    width:100%!important;
    min-height:56px!important;
    border:1px solid var(--akb-line)!important;
    border-radius:12px!important;
    padding:12px 48px 12px 50px!important;
    background:#fff!important;
    color:var(--akb-ink)!important;
    box-shadow:none!important;
    font-size:16px!important;
}
.akbstock-field input:focus {
    border-color:#81b1c4!important;
    outline:3px solid rgba(50,118,146,.10)!important;
}
.akbstock-field input[readonly] {
    background:#f7fafb!important;
    color:#667682!important;
}

.akbstock-field-icon {
    position:absolute;
    left:17px;
    top:50%;
    transform:translateY(-50%);
    width:20px;
    height:20px;
    color:#64727c;
    pointer-events:none;
    z-index:2;
}
.akbstock-field-icon svg,
.akbstock-password-toggle svg {
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.akbstock-password-toggle {
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    padding:6px;
    border:0;
    background:transparent;
    color:#526775;
    cursor:pointer;
    border-radius:50%;
}
.akbstock-password-toggle:hover { background:var(--akb-brand-soft); }

.akbstock-login-options {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    font-size:14px;
}
.akbstock-login-options label {
    display:flex;
    align-items:center;
    gap:8px;
}
.akbstock-login-options a { color:var(--akb-brand); text-decoration:none; }

.akbstock-auth-primary,
.akbstock-auth-secondary {
    border:0;
    border-radius:11px;
    min-height:50px;
    padding:12px 20px;
    background:var(--akb-brand);
    color:#fff;
    font-weight:700;
    font-size:16px;
    cursor:pointer;
}
.akbstock-auth-primary { width:100%; }
.akbstock-auth-primary:hover,
.akbstock-auth-secondary:hover { background:var(--akb-brand-hover); }
.akbstock-auth-primary:disabled,
.akbstock-auth-secondary:disabled {
    opacity:.58;
    cursor:not-allowed;
}

.akbstock-email-action-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) 140px;
    gap:12px;
    align-items:stretch;
}

.akbstock-code-step {
    padding:18px;
    border:1px solid #cddfe8;
    border-radius:14px;
    background:#f7fbfd;
}
.akbstock-code-step[hidden],
.akbstock-password-step[hidden] { display:none!important; }
.akbstock-code-copy {
    margin-bottom:12px;
    color:var(--akb-text);
    font-size:14px;
}
.akbstock-code-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
}
.akbstock-resend-code {
    border:0;
    background:transparent;
    color:var(--akb-brand);
    font-weight:700;
    cursor:pointer;
    white-space:nowrap;
}
.akbstock-resend-code:disabled { color:#9aa7b0; cursor:not-allowed; }

.akbstock-inline-status {
    min-height:20px;
    margin-top:9px;
    font-size:13px;
    font-weight:600;
}
.akbstock-inline-status.is-info { color:var(--akb-brand); }
.akbstock-inline-status.is-success { color:var(--akb-success); }
.akbstock-inline-status.is-error { color:var(--akb-danger); }

.akbstock-password-step {
    display:grid;
    gap:22px;
    padding-top:2px;
}

.akbstock-auth-message {
    margin:-8px 0 22px;
    padding:11px 13px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
}
.akbstock-auth-message.is-error { background:#fff1f1; color:var(--akb-danger); }
.akbstock-auth-message.is-success { background:#edf8f4; color:var(--akb-success); }
.akbstock-auth-message.is-info { background:var(--akb-brand-soft); color:var(--akb-brand); }

.akbstock-auth-social { margin-top:24px; }
.akbstock-auth-divider {
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 18px;
    color:var(--akb-muted);
    font-size:12px;
}
.akbstock-auth-divider::before,
.akbstock-auth-divider::after {
    content:"";
    height:1px;
    background:var(--akb-line);
    flex:1;
}
.akbstock-google-signin {
    width:100%;
    min-height:44px;
    display:flex;
    justify-content:center;
}
.akbstock-google-signin > div { width:100%!important; }
.akbstock-google-pending {
    width:100%;
    min-height:50px;
    border:1px solid var(--akb-line);
    border-radius:11px;
    background:#fff;
    color:#55636d;
    font-weight:600;
    opacity:.68;
}
.akbstock-google-g {
    display:inline-grid;
    place-items:center;
    width:22px;
    height:22px;
    margin-right:8px;
    border-radius:50%;
    border:1px solid #d6dce0;
    font-weight:800;
    color:#4285f4;
}

@media (max-width:620px) {
    .akbstock-auth-page { padding:22px 10px 48px; }
    .akbstock-auth-form-panel { padding:28px 20px 34px; }
    .akbstock-auth-logo { width:205px; }
    .akbstock-name-row { grid-template-columns:1fr; gap:14px; }
    .akbstock-email-action-row { grid-template-columns:1fr; }
    .akbstock-code-row { grid-template-columns:1fr; }
    .akbstock-resend-code { justify-self:start; padding:5px 0; }
}

/* V0.3.16 - WooCommerce native password recovery inside AKBSTOCK branded shell */
.akbstock-password-recovery-heading {
    margin:0 0 24px;
    text-align:center;
}
.akbstock-password-recovery-heading h1 {
    margin:0 0 8px;
    color:var(--akb-ink);
    font-size:28px;
    line-height:1.2;
    font-weight:700;
}
.akbstock-password-recovery-heading p {
    margin:0;
    color:var(--akb-muted);
    font-size:14px;
}
.akbstock-password-recovery-content .woocommerce {
    margin:0;
}
.akbstock-password-recovery-content .woocommerce-ResetPassword,
.akbstock-password-recovery-content .lost_reset_password {
    max-width:none;
    margin:0;
}
.akbstock-password-recovery-content .woocommerce-ResetPassword > p:first-child,
.akbstock-password-recovery-content .lost_reset_password > p:first-child {
    margin:0 0 20px;
    color:var(--akb-text);
    line-height:1.65;
}
.akbstock-password-recovery-content .woocommerce-form-row {
    float:none!important;
    width:100%!important;
    margin:0 0 18px!important;
}
.akbstock-password-recovery-content label {
    display:block;
    margin:0 0 7px;
    color:var(--akb-ink);
    font-size:14px;
    font-weight:600;
}
.akbstock-password-recovery-content input.input-text,
.akbstock-password-recovery-content input[type="text"],
.akbstock-password-recovery-content input[type="email"],
.akbstock-password-recovery-content input[type="password"] {
    width:100%!important;
    min-height:56px!important;
    border:1px solid var(--akb-line)!important;
    border-radius:12px!important;
    padding:12px 16px!important;
    background:#fff!important;
    color:var(--akb-ink)!important;
    box-shadow:none!important;
    font-size:16px!important;
}
.akbstock-password-recovery-content input.input-text:focus,
.akbstock-password-recovery-content input[type="text"]:focus,
.akbstock-password-recovery-content input[type="email"]:focus,
.akbstock-password-recovery-content input[type="password"]:focus {
    border-color:#81b1c4!important;
    outline:3px solid rgba(50,118,146,.10)!important;
}
.akbstock-password-recovery-content button.button,
.akbstock-password-recovery-content .woocommerce-Button,
.akbstock-password-recovery-content input[type="submit"] {
    width:100%!important;
    min-height:50px!important;
    border:0!important;
    border-radius:11px!important;
    padding:12px 20px!important;
    background:var(--akb-brand)!important;
    color:#fff!important;
    font-weight:700!important;
    font-size:16px!important;
    cursor:pointer!important;
}
.akbstock-password-recovery-content button.button:hover,
.akbstock-password-recovery-content .woocommerce-Button:hover,
.akbstock-password-recovery-content input[type="submit"]:hover {
    background:var(--akb-brand-hover)!important;
    color:#fff!important;
}
.akbstock-password-recovery-content .woocommerce-message,
.akbstock-password-recovery-content .woocommerce-info,
.akbstock-password-recovery-content .woocommerce-error {
    margin:0 0 18px!important;
    padding:12px 14px!important;
    border:1px solid var(--akb-line)!important;
    border-radius:10px!important;
    background:#f7fbfd!important;
    color:var(--akb-text)!important;
    list-style:none!important;
}
.akbstock-password-recovery-content .woocommerce-error {
    background:#fff1f1!important;
    color:var(--akb-danger)!important;
}
.akbstock-password-recovery-content .woocommerce-password-strength,
.akbstock-password-recovery-content .woocommerce-password-hint {
    margin-top:8px;
    font-size:13px;
    line-height:1.45;
}
.akbstock-password-recovery-back {
    display:flex;
    justify-content:center;
    margin-top:22px;
}
.akbstock-password-recovery-back a {
    color:var(--akb-brand);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}
.akbstock-password-recovery-back a:hover {
    color:var(--akb-brand-hover);
    text-decoration:underline;
}



/* V0.3.17 - AKBSTOCK-owned final reset form bridge */
.akbstock-reset-session-error {
    padding:16px;
    border:1px solid #efc9c9;
    border-radius:12px;
    background:#fff6f6;
    color:var(--akb-text);
}
.akbstock-reset-session-error p {
    margin:0 0 12px;
}
.akbstock-reset-request-link {
    color:var(--akb-brand);
    font-weight:700;
    text-decoration:none;
}
.akbstock-reset-request-link:hover {
    color:var(--akb-brand-hover);
    text-decoration:underline;
}
