/*============================================*/
/* Sign in / Create Account: woocommerce/myaccount/form-login.php */

.peptix-auth {
    --pa-blue: #3B82F6;
    --pa-blue-dark: #2563EB;
    --pa-blue-soft: rgba(59, 130, 246, 0.08);
    --pa-ink: #0F172A;
    --pa-text: #4B5563;
    --pa-muted: #757575;
    --pa-line: #E5E7EB;
    font-family: "Outfit", sans-serif;
    color: var(--pa-ink);
}

/* Views: [data-view="login"] / [data-view="register"] */
.peptix-auth[data-view="login"] .is-register:not(.peptix-auth-tab),
.peptix-auth[data-view="register"] .is-login:not(.peptix-auth-tab) {
    display: none;
}

/* Banner */
.peptix-auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(260px, 201.75px + 15.53vw, 500px);
    padding: 40px;
    border-radius: clamp(16px, 15.03px + 0.26vw, 20px);
    overflow: hidden;
    background: #0F172A;
    text-align: center;
}

.peptix-auth .peptix-auth-hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    background-position: center;
    background-size: cover;
    animation: peptix-auth-fade 0.4s ease;
}

.peptix-auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

@keyframes peptix-auth-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.peptix-auth .peptix-auth-hero-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(38px, 29.75px + 2.2vw, 72px);
    line-height: 1.1;
    color: #FFFFFF;
}

/* Notices */
.peptix-auth > .woocommerce-notices-wrapper:not(:empty),
.peptix-auth > .woocommerce-error,
.peptix-auth > .woocommerce-message,
.peptix-auth > .woocommerce-info {
    max-width: 1070px;
    margin: 40px auto 0;
}

.peptix-auth .woocommerce-error,
.peptix-auth .woocommerce-message,
.peptix-auth .woocommerce-info {
    margin: 0;
}

/* Form + image */
.peptix-auth-body {
    display: grid;
    grid-template-columns: minmax(0, 455fr) minmax(0, 597fr);
    gap: 16px; 
    margin: 100px auto 0;
}

.peptix-auth-card {
    display: flex;
    flex-direction: column;
    padding: clamp(16px, 15.03px + 0.26vw, 20px);
    border: 1px solid var(--pa-line);
    border-radius: 16px;
    background: #FFFFFF;
}

.peptix-auth-media {
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #EAF2FD;
}

.peptix-auth .peptix-auth-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

/* Tabs */
.peptix-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    border: 1px solid var(--pa-line);
    border-radius: 8px;
}

.peptix-auth .peptix-auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: -1px;
    padding: 12px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1.3;
    color: var(--pa-blue);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.peptix-auth .peptix-auth-tab[aria-selected="true"] {
    background: var(--pa-blue);
    font-size: 20px;
    color: #FFFFFF;
}

.peptix-auth .peptix-auth-tab[aria-selected="false"]:hover {
    background: var(--pa-blue-soft);
    font-size: 20px;
}

/* Panels */
.peptix-auth-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.peptix-auth-panel form {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Fields */
.peptix-auth form .form-row {
    margin: 0 0 16px;
    padding: 0;
}

.peptix-auth form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--pa-ink);
}

.peptix-auth form .form-row .required {
    color: #EF4444;
    text-decoration: none;
}

.peptix-auth-input {
    position: relative;
    display: block;
}

/* Short blue line under each field, like the design. */
.peptix-auth-input::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 38px;
    height: 2px;
    border-radius: 2px;
    background: var(--pa-blue);
    pointer-events: none;
}

.peptix-auth-input .password-input {
    position: relative;
    display: block;
}

.peptix-auth form .form-row input.input-text {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 12px;
    border: 1px solid var(--pa-line);
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--pa-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.peptix-auth form .form-row input.input-text::placeholder {
    color: #8A8F98;
}

.peptix-auth form .form-row input.input-text:focus {
    border-color: var(--pa-blue);
    outline: none;
    box-shadow: 0 0 0 3px var(--pa-blue-soft);
}

/* WooCommerce's show / hide password button: eye icon. */
.peptix-auth .show-password-input {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pa-ink);
    cursor: pointer;
    transform: translateY(-50%);
}

.peptix-auth .show-password-input::before,
.peptix-auth .show-password-input::after {
    content: "";
    position: absolute;
    inset: 0;
    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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.peptix-auth .show-password-input::after {
    display: none;
}

.peptix-auth .show-password-input.display-password::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.peptix-auth .peptix-auth-forgot {
    margin: -8px 0 16px;
    text-align: right;
}

.peptix-auth .peptix-auth-forgot a,
.peptix-auth .peptix-auth-switch a {
    font-size: 16px;
    color: var(--pa-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.peptix-auth .peptix-auth-forgot a:hover ,.peptix-auth .peptix-auth-switch a:hover,.peptix-auth .woocommerce-privacy-policy-text a:hover{
    font-size: 16px;
    color: var(--pa-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.peptix-auth .peptix-auth-note,
.peptix-auth .woocommerce-privacy-policy-text p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pa-muted);
}

.peptix-auth .woocommerce-privacy-policy-text a {
    color: var(--pa-blue);
}

/* Remember me, button and switch link sit at the bottom of the card. */
.peptix-auth-bottom {
    margin-top: auto;
    padding-top: clamp(16px, 14.06px + 0.52vw, 24px);
}

.peptix-auth .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    font-size: 15px;
    color: var(--pa-text) !important;
    cursor: pointer;
}

.peptix-auth .woocommerce-form-login__rememberme input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--pa-blue);
}

.peptix-auth .peptix-auth-submit,
.woocommerce .peptix-auth form .peptix-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    float: none;
    min-width: 174px;
    min-height: 42px;
    margin: 0;
    padding: 10px 24px;
    border: 0;
    border-radius: 8px;
    background: var(--pa-blue);
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.25s ease;
}

.peptix-auth .peptix-auth-submit svg {
    transition: transform 0.25s ease;
}

.peptix-auth .peptix-auth-submit:hover,
.woocommerce .peptix-auth form .peptix-auth-submit:hover {
    background: var(--pa-blue-dark);
    color: #FFFFFF;
}

.peptix-auth .peptix-auth-submit:hover svg {
    transform: rotate(45deg);
}

.peptix-auth .peptix-auth-switch {
    margin: 14px 0 0;
    font-size: 15px;
    color: var(--pa-muted);
}

/* Tablet */
@media (max-width: 1024px) {

    .peptix-auth-body { margin-top: 60px; }
}

/* Mobile: image above the form, stacked tabs */
@media (max-width: 767px) {
    .peptix-auth-hero { padding: 24px 20px; }

    .peptix-auth-body { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 40px; }
    .peptix-auth-media { order: -1; min-height: 0; aspect-ratio: 1 / 1; }

    .peptix-auth-tabs {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        border: 0;
    }

    .peptix-auth .peptix-auth-tab,
    .peptix-auth .peptix-auth-tab[aria-selected="true"],
    .peptix-auth .peptix-auth-tab[aria-selected="false"]:hover {
        margin: 0;
        padding: 10px 12px;
        font-size: 16px;
    }

    .peptix-auth .peptix-auth-tab[aria-selected="false"] { border: 1px solid var(--pa-line); }

    .peptix-auth .peptix-auth-switch { text-align: center; }
    .peptix-auth .peptix-auth-switch a { display: table; margin: 4px auto 0; }

    .peptix-auth .peptix-auth-submit,
    .woocommerce .peptix-auth form .peptix-auth-submit { width: 100%; }
}

/* Forgot / Reset Password and "email sent" (same layout, one card) */
.peptix-auth--single .peptix-auth-card {
    padding: clamp(24px, 22.06px + 0.52vw, 32px) clamp(20px, 18.06px + 0.52vw, 28px) clamp(20px, 18.06px + 0.52vw, 28px);
}

.peptix-auth--single .peptix-auth-card > form,
.peptix-auth-sent {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.peptix-auth .peptix-auth-heading {
    margin: 0 0 10px;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(28px, 26.54px + 0.39vw, 34px);
    line-height: 1.15;
    color: var(--pa-ink);
}

.peptix-auth .peptix-auth-intro {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pa-muted);
}

.peptix-auth-sent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--pa-blue-soft);
    color: var(--pa-blue);
}

.peptix-auth a.peptix-auth-submit {
    align-self: flex-start;
    text-decoration: none;
}

/* Notices inside the card */
.peptix-auth-card .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 20px;
}

@media (max-width: 767px) {

    .peptix-auth a.peptix-auth-submit { align-self: stretch; }
}

/* Notices get focus for screen readers; no outline needed (they are not clickable). */
.peptix-auth .woocommerce-message:focus,
.peptix-auth .woocommerce-error:focus,
.peptix-auth .woocommerce-info:focus,
.peptix-auth .woocommerce-notices-wrapper:focus {
    outline: none;
}

.peptix-auth > .woocommerce-notices-wrapper:not(:empty) + .peptix-auth-body {
    margin-top: 40px;
}
