.eva-auth-shell,
.eva-auth-shell * {
    box-sizing: border-box;
}

.eva-auth-shell {
    --eva-accent: #2f9bff;
    width: min(100%, 1280px);
    min-height: 760px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.78fr);
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(6, 23, 57, 0.18);
    color: #10213a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.eva-auth-notice {
    width: min(100% - 32px, 860px);
    margin: 24px auto;
    padding: 18px 20px;
    border: 1px solid #c7d8ff;
    border-radius: 10px;
    background: #eef5ff;
    color: #10213a;
}

.eva-auth-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background-color: #062556;
    background-image:
        linear-gradient(180deg, rgba(3, 19, 48, 0.92) 0%, rgba(7, 55, 117, 0.74) 48%, rgba(3, 28, 66, 0.86) 100%),
        var(--eva-hero-image, radial-gradient(circle at 62% 22%, rgba(255, 255, 255, 0.88) 0 7%, rgba(255, 255, 255, 0) 19%), radial-gradient(circle at 62% 48%, rgba(86, 162, 213, 0.55) 0 12%, rgba(86, 162, 213, 0) 33%), linear-gradient(135deg, #041839 0%, #0b4f97 48%, #f2b866 100%));
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.eva-auth-hero::before,
.eva-auth-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    pointer-events: none;
}

.eva-auth-hero::before {
    height: 44%;
    background:
        radial-gradient(ellipse at 62% 88%, rgba(255, 209, 133, 0.42) 0 18%, rgba(255, 209, 133, 0) 46%),
        linear-gradient(180deg, rgba(2, 19, 43, 0) 0%, rgba(2, 19, 43, 0.55) 100%);
}

.eva-auth-hero::after {
    height: 30%;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0) 0 18%, rgba(255, 255, 255, 0.1) 18% 19%, rgba(255, 255, 255, 0) 19%),
        radial-gradient(ellipse at 24% 88%, rgba(238, 196, 98, 0.62) 0 17%, rgba(238, 196, 98, 0) 18%),
        radial-gradient(ellipse at 63% 86%, rgba(25, 33, 48, 0.72) 0 18%, rgba(25, 33, 48, 0) 19%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(6, 23, 57, 0.82) 100%);
    opacity: 0.85;
}

.eva-auth-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 50px);
}

.eva-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    width: fit-content;
}

.eva-auth-logo {
    position: relative;
    width: 64px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eva-auth-logo::before,
.eva-auth-logo::after,
.eva-auth-logo span {
    content: "";
    position: absolute;
    display: block;
}

.eva-auth-logo::before {
    left: 4px;
    bottom: 2px;
    width: 34px;
    height: 52px;
    background: linear-gradient(150deg, #7bc6ff 0%, #ffffff 49%, #75baff 100%);
    clip-path: polygon(52% 0, 100% 100%, 59% 77%, 38% 100%, 0 100%);
}

.eva-auth-logo::after {
    right: 4px;
    bottom: 2px;
    width: 28px;
    height: 44px;
    background: linear-gradient(160deg, #ffffff 0%, #78c2ff 100%);
    clip-path: polygon(44% 0, 100% 100%, 55% 75%, 32% 100%, 0 100%);
    opacity: 0.92;
}

.eva-auth-logo span {
    right: 18px;
    top: 18px;
    width: 14px;
    height: 18px;
    background: #05214e;
    clip-path: polygon(50% 0, 100% 100%, 50% 70%, 0 100%);
    opacity: 0.95;
}

.eva-auth-brand-text {
    display: grid;
    gap: 4px;
}

.eva-auth-brand-text strong {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1;
    letter-spacing: 0;
}

.eva-auth-brand-text small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.eva-auth-copy {
    max-width: 560px;
    padding: 52px 0;
}

.eva-auth-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 5.1vw, 70px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: 0;
}

.eva-auth-accent-line {
    color: var(--eva-accent);
}

.eva-auth-rule {
    display: block;
    width: 64px;
    height: 4px;
    margin: 28px 0 24px;
    border-radius: 999px;
    background: var(--eva-accent);
}

.eva-auth-copy p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.42;
}

.eva-auth-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 680px;
}

.eva-auth-feature {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.eva-auth-feature-icon {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(0, 105, 222, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.eva-auth-feature svg {
    width: 27px;
    height: 27px;
    fill: #ffffff;
}

.eva-auth-feature strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.1;
}

.eva-auth-feature span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.42;
}

.eva-auth-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 4vw, 58px);
    background: #ffffff;
}

.eva-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 24px;
    padding: 5px;
    border: 1px solid #e5ebf3;
    border-radius: 12px;
    background: #f6f9fd;
}

.eva-auth-tab {
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6f7b8d;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.eva-auth-tab.is-active {
    background: #ffffff;
    color: #0f2b55;
    box-shadow: 0 6px 18px rgba(11, 39, 81, 0.08);
}

.eva-auth-panel[hidden] {
    display: none !important;
}

.eva-auth-card-header {
    margin-bottom: 30px;
}

.eva-auth-card-header h2 {
    margin: 0 0 8px;
    color: #102c56;
    font-size: clamp(25px, 2.2vw, 32px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.eva-auth-card-header p {
    margin: 0;
    color: #6a7487;
    font-size: 15px;
    line-height: 1.45;
}

.eva-auth-form {
    display: grid;
    gap: 20px;
    margin: 0;
}

.eva-auth-field {
    display: grid;
    gap: 9px;
    margin: 0;
}

.eva-auth-field label {
    margin: 0;
    color: #18263d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.eva-auth-field label span {
    color: #e04662;
}

.eva-auth-input,
.eva-auth-phone select {
    width: 100%;
    min-height: 54px;
    margin: 0;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #ffffff;
    color: #14243d;
    font: inherit;
    font-size: 15px;
    line-height: 1.3;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.eva-auth-input {
    padding: 0 16px;
}

.eva-auth-input::placeholder {
    color: #98a3b3;
    opacity: 1;
}

.eva-auth-input:focus,
.eva-auth-phone select:focus {
    border-color: var(--eva-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--eva-accent) 16%, transparent);
}

.eva-auth-phone {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.eva-auth-phone:focus-within {
    border-color: var(--eva-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--eva-accent) 16%, transparent);
}

.eva-auth-phone select,
.eva-auth-phone .eva-auth-input {
    min-height: 54px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.eva-auth-phone select {
    padding: 0 16px;
    border-right: 1px solid #e7ecf3;
    color: #102c56;
    font-weight: 700;
}

.eva-auth-help {
    color: #6c7688;
    font-size: 13px;
    line-height: 1.38;
}

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

.eva-auth-password .eva-auth-input {
    padding-right: 52px;
}

.eva-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.eva-auth-password-toggle span {
    position: relative;
    width: 18px;
    height: 12px;
    border: 2px solid #7b8798;
    border-radius: 999px / 70%;
}

.eva-auth-password-toggle span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: #7b8798;
}

.eva-auth-password-toggle:hover,
.eva-auth-password-toggle:focus-visible {
    background: #eef5ff;
}

.eva-auth-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #647083;
    font-size: 14px;
}

.eva-auth-login-row a,
.eva-auth-switch button {
    color: #0b66df;
    font-weight: 800;
    text-decoration: none;
}

.eva-auth-login-row a:hover,
.eva-auth-switch button:hover {
    color: #084da6;
}

.eva-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.eva-auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.eva-auth-actions {
    margin: 8px 0 0;
}

.eva-auth-button,
.eva-auth-card .button.eva-auth-button {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #0868e8;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(8, 104, 232, 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.eva-auth-button:hover,
.eva-auth-card .button.eva-auth-button:hover,
.eva-auth-button:focus-visible {
    background: #075bd0;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(8, 104, 232, 0.24);
}

.eva-auth-switch {
    margin: 24px 0 0;
    color: #717b8c;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.eva-auth-switch button {
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.eva-auth-switch-muted {
    color: #8791a1;
}

.eva-auth-shell .woocommerce-privacy-policy-text,
.eva-auth-shell .woocommerce-form__label-for-checkbox {
    color: #657083;
    font-size: 13px;
    line-height: 1.45;
}

.woocommerce .eva-auth-shell .woocommerce-error,
.woocommerce .eva-auth-shell .woocommerce-message,
.woocommerce .eva-auth-shell .woocommerce-info {
    margin-bottom: 18px;
}

@media (max-width: 1020px) {
    .eva-auth-shell {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 720px);
        min-height: 0;
    }

    .eva-auth-hero {
        min-height: 430px;
    }

    .eva-auth-copy {
        padding: 42px 0;
    }

    .eva-auth-copy h1 {
        font-size: clamp(40px, 8vw, 58px);
    }
}

@media (max-width: 680px) {
    .eva-auth-shell {
        width: min(100% - 18px, 520px);
        margin: 12px auto;
        border-radius: 14px;
    }

    .eva-auth-hero {
        min-height: 390px;
    }

    .eva-auth-hero-inner,
    .eva-auth-card {
        padding: 24px;
    }

    .eva-auth-brand {
        gap: 12px;
    }

    .eva-auth-logo {
        width: 50px;
        height: 46px;
    }

    .eva-auth-copy {
        padding: 34px 0;
    }

    .eva-auth-copy h1 {
        font-size: 38px;
    }

    .eva-auth-copy p {
        font-size: 16px;
    }

    .eva-auth-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eva-auth-feature {
        grid-template-columns: 48px 1fr;
        align-items: center;
        column-gap: 12px;
    }

    .eva-auth-feature-icon {
        grid-row: span 2;
        width: 48px;
        height: 48px;
    }

    .eva-auth-phone {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .eva-auth-login-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
