/* MyElectrica-style login (standalone, does not depend on login.css) */
:root {
    --ef-blue: #3b71b9;
    --ef-blue-dark: #2d5fa0;
    --ef-gray-bg: #f4f4f4;
    --ef-text-muted: #6b7a90;
    --ef-border: #d0d7e0;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ef-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

/* Left panel */
.ef-left {
    flex: 1;
    min-width: 0;
    background-color: var(--ef-blue);
    background-image:
        linear-gradient(120deg, rgba(45, 95, 160, 0.94) 0%, rgba(59, 113, 185, 0.88) 50%, rgba(70, 120, 190, 0.85) 100%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    color: #fff;
    padding: 48px 40px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ef-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M0 0h60v60H0zm60 60h60v60H60z'/%3E%3C/svg%3E");
    opacity: 0.9;
    pointer-events: none;
}

.ef-left-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.ef-left h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.ef-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 28px;
    opacity: 0.96;
}

.ef-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ef-bullets li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.95;
}

.ef-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

/* Right panel */
.ef-right {
    flex: 1;
    min-width: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px 40px;
}

.ef-right-inner {
    width: 100%;
    max-width: 400px;
}

.ef-brand-top {
    text-align: center;
    margin-bottom: 28px;
}

.ef-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.ef-logo-img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 100%;
}

.ef-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.ef-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ef-text-muted);
    background: none;
    border: none;
    cursor: default;
    font-family: inherit;
}

.ef-tab.active {
    color: var(--ef-blue);
    box-shadow: inset 0 -3px 0 var(--ef-blue);
}

.ef-tab:not(.active) {
    cursor: pointer;
}

.ef-form-card {
    background: var(--ef-gray-bg);
    border-radius: 8px;
    padding: 24px 22px 26px;
    box-shadow: 0 4px 24px rgba(15, 35, 70, 0.06);
}

.ef-field {
    margin-bottom: 18px;
}

.ef-field label.ef-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a6a7e;
    margin-bottom: 6px;
}

.ef-field-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.ef-field-row-head .ef-label {
    margin-bottom: 0;
}

.ef-forgot {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ef-blue);
    text-decoration: none;
}

.ef-forgot:hover {
    text-decoration: underline;
}

.ef-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ef-border);
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ef-input:focus {
    outline: none;
    border-color: var(--ef-blue);
    box-shadow: 0 0 0 3px rgba(59, 113, 185, 0.15);
}

.ef-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ef-pw-wrap .ef-input {
    padding-right: 44px;
}

.ef-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ef-text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 0.95rem;
    line-height: 1;
}

.ef-eye:hover {
    color: var(--ef-blue);
}

.ef-help {
    margin: 4px 0 20px;
    font-size: 0.8rem;
    color: var(--ef-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ef-help i {
    opacity: 0.85;
}

.ef-submit {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: var(--ef-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.ef-submit:hover {
    background: var(--ef-blue-dark);
}

.ef-error {
    color: #c41e3a;
    font-size: 0.85rem;
    margin: -8px 0 14px;
}

.ef-pay-footer {
    display: block;
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ef-blue);
    text-decoration: none;
}

.ef-pay-footer:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .ef-shell {
        flex-direction: column;
    }

    .ef-left {
        padding: 36px 28px 40px;
        min-height: auto;
    }

    .ef-left-inner {
        max-width: none;
    }
}
