/* ============================================================
   EcoFridge Customizations — Login / Register Portal Layout
   ============================================================ */

.ecofridge-lr-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    max-width: 1120px;
    margin: 64px auto;
    align-items: start;
    background: #fff;
    color: #1f2933;
}

.ecofridge-lr-wrap,
.ecofridge-lr-wrap * {
    box-sizing: border-box;
}

.ecofridge-lr-wrap .ecofridge-lr-left,
.ecofridge-lr-wrap .ecofridge-lr-right {
    min-width: 0;
}

/* ── Inline notices (error / success / info) ── */

.ecofridge-lr-wrap .ecofridge-inline-notices {
    margin: 0 0 28px;
}

/* Reset WooCommerce defaults μέσα στο namespace μας */
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-notices-wrapper {
    margin: 0;
    padding: 0;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info {
    display: block;
    margin: 0 0 10px;
    padding: 13px 16px 13px 46px;
    border: 0;
    border-left: 4px solid;
    border-radius: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: none;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error:last-child,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message:last-child,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info:last-child {
    margin-bottom: 0;
}

/* Χρώματα ανά τύπο */
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error {
    background: #fff3f3;
    border-left-color: #c0392b;
    color: #7b1111;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message {
    background: #f0faf5;
    border-left-color: #27ae60;
    color: #1a5e35;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info {
    background: #f0f7ff;
    border-left-color: #2980b9;
    color: #154360;
}

/* Icon με pseudo-element — αντικαθιστά οποιοδήποτε theme icon */
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error::before,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message::before,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info::before {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error {
    position: relative;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error::before {
    content: "✕";
    color: #c0392b;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message {
    position: relative;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message::before {
    content: "✓";
    color: #27ae60;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info {
    position: relative;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info::before {
    content: "ℹ";
    color: #2980b9;
}

/* List items μέσα στα notices */
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error li,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message li,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info li {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.5;
}

.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-error li:last-child,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-message li:last-child,
.ecofridge-lr-wrap .ecofridge-inline-notices .woocommerce-info li:last-child {
    margin-bottom: 0;
}

/* Links μέσα σε notices (π.χ. «Ξεχάσατε τον κωδικό;») */
.ecofridge-lr-wrap .ecofridge-inline-notices a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Per-field inline errors (client-side + server-side distribution) ── */

.ecofridge-lr-wrap .ecofridge-field-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.ecofridge-lr-wrap input.ecofridge-field-invalid,
.ecofridge-lr-wrap select.ecofridge-field-invalid,
.ecofridge-lr-wrap textarea.ecofridge-field-invalid {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.10) !important;
}

.ecofridge-lr-wrap .ecofridge-lr-left {
    position: relative;
    padding-right: 0;
}

.ecofridge-lr-wrap .ecofridge-lr-right {
    position: relative;
    padding: 8px 0 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.ecofridge-lr-wrap .ecofridge-lr-right::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: -24px;
    left: -40px;
    width: 1px;
    background: #cfd7dd;
}

.ecofridge-lr-wrap .ecofridge-section {
    display: none;
}

.ecofridge-lr-wrap .ecofridge-section.is-active {
    display: block;
    animation: ecofridgeFadeIn 0.25s ease;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-form-login,
.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-form-register {
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: visible !important;
}

@keyframes ecofridgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecofridge-lr-wrap .ecofridge-section-title,
.ecofridge-lr-wrap .ecofridge-promo-title {
    position: relative;
    display: inline-block;
    margin: 0 0 44px;
    padding: 0 0 22px;
    color: #004e6c;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    border: 0;
    text-align: left;
}

.ecofridge-lr-wrap .ecofridge-section-title::after,
.ecofridge-lr-wrap .ecofridge-promo-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 84px;
    height: 3px;
    background: #00a6d6;
}

.ecofridge-lr-wrap .woocommerce-form-row,
.ecofridge-lr-wrap .form-row {
    margin-bottom: 22px;
}

.ecofridge-lr-wrap label {
    display: block;
    margin-bottom: 8px;
    color: #1f2933;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.ecofridge-lr-wrap .required {
    color: #e00000;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-Input,
.ecofridge-lr-wrap .ecofridge-lr-left input[type="text"],
.ecofridge-lr-wrap .ecofridge-lr-left input[type="email"],
.ecofridge-lr-wrap .ecofridge-lr-left input[type="password"],
.ecofridge-lr-wrap .ecofridge-lr-left input[type="tel"],
.ecofridge-lr-wrap .ecofridge-lr-left select,
.ecofridge-lr-wrap .ecofridge-lr-left textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #cfd7dd;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ecofridge-lr-wrap .ecofridge-lr-left textarea {
    min-height: 110px;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-Input:focus,
.ecofridge-lr-wrap .ecofridge-lr-left input:focus,
.ecofridge-lr-wrap .ecofridge-lr-left select:focus,
.ecofridge-lr-wrap .ecofridge-lr-left textarea:focus {
    border-color: #00506b;
    box-shadow: 0 0 0 3px rgba(0, 80, 107, 0.12);
    outline: none;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-button,
.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-Button,
.ecofridge-lr-wrap .ecofridge-toggle-btn {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 14px 22px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    background: #00506b;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-button:hover,
.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-button:focus,
.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-Button:hover,
.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-Button:focus,
.ecofridge-lr-wrap .ecofridge-toggle-btn:hover,
.ecofridge-lr-wrap .ecofridge-toggle-btn:focus {
    color: #fff;
    background: #003f55;
    outline: none;
}

.ecofridge-lr-wrap .woocommerce-form-login__rememberme {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}

.ecofridge-lr-wrap .woocommerce-form-login__rememberme input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-LostPassword {
    margin-top: 16px;
    font-size: 15px;
}

.ecofridge-lr-wrap .ecofridge-lr-left .woocommerce-LostPassword a {
    color: #00506b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ecofridge-lr-wrap .ecofridge-promo-text {
    max-width: 520px;
    margin: 0 0 42px;
    color: #27313a;
    font-size: 18px;
    line-height: 1.75;
    text-align: left;
}

.ecofridge-lr-wrap .ecofridge-promo-benefits {
    list-style: none;
    margin: 0 0 56px;
    padding: 0;
}

.ecofridge-lr-wrap .ecofridge-promo-benefits li {
    position: relative;
    margin: 0 0 22px;
    padding: 0 0 0 42px;
    color: #1f2933;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
}

.ecofridge-lr-wrap .ecofridge-promo-benefits li::before {
    content: "✓";
    position: absolute;
    top: -1px;
    left: 0;
    color: #004e6c;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.ecofridge-lr-wrap.ecofridge-lr-mode-register .ecofridge-promo-benefits {
    display: none;
}

.ecofridge-lr-wrap.ecofridge-lr-mode-register .ecofridge-promo-text {
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .ecofridge-lr-wrap {
        grid-template-columns: 1fr;
        gap: 34px;
        margin: 32px 16px;
    }

    .ecofridge-lr-wrap .ecofridge-lr-left {
        order: 2;
        padding: 0;
    }

    .ecofridge-lr-wrap .ecofridge-lr-right {
        order: 1;
        padding: 0 0 30px;
        border-bottom: 1px solid #cfd7dd;
    }

    .ecofridge-lr-wrap .ecofridge-lr-right::before {
        display: none;
    }

    .ecofridge-lr-wrap .ecofridge-section-title,
    .ecofridge-lr-wrap .ecofridge-promo-title {
        margin-bottom: 28px;
        padding-bottom: 16px;
        font-size: 30px;
    }

    .ecofridge-lr-wrap .ecofridge-promo-text {
        margin-bottom: 28px;
        font-size: 16px;
        line-height: 1.65;
    }

    .ecofridge-lr-wrap .ecofridge-promo-benefits {
        margin-bottom: 34px;
    }

    .ecofridge-lr-wrap .ecofridge-promo-benefits li {
        margin-bottom: 16px;
        font-size: 16px;
    }
}
