:root {
    --lp-navy:      #060e24;
    --lp-navy-mid:  #0c1842;
    --lp-teal:      #0da892;
    --lp-teal-lt:   #22d8c0;
    --lp-text-dark: #0b1840;
    --lp-text-gray: #6b7280;
    --lp-border:    #e5e7eb;
    --lp-input-bg:  #f9fafb;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body { height: 100%; }

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* ─── Layout ──────────────────────────────── */

.lp-wrap {
    display: flex;
    min-height: 100vh;
    flex-direction: row-reverse;
}


/* ─── Brand panel ─────────────────────────── */

.lp-brand {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--lp-navy);
    background-size: cover;
    background-position: center;
}

.lp-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(6,14,36,0.2) 0%, rgba(6,14,36,0.55) 100%);
    pointer-events: none;
    z-index: 0;
}

.lp-brand__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
    text-align: center;
}


/* ─── Icon + ripple rings ─────────────────── */

.lp-brand__icon-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-brand__icon-wrap::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,168,146,0.18) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.lp-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(13,168,146,0.6);
    animation: lp-ripple 4s ease-out infinite;
}

.lp-ring--a { width: 150px;  height: 150px;  animation-delay: 0s; }
.lp-ring--b { width: 230px;  height: 230px;  animation-delay: 1s;   border-color: rgba(13,168,146,0.5);  }
.lp-ring--c { width: 330px;  height: 330px;  animation-delay: 2s;   border-color: rgba(13,168,146,0.3);  }
.lp-ring--d { width: 440px;  height: 440px;  animation-delay: 3s;   border-color: rgba(13,168,146,0.12); }

@keyframes lp-ripple {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    70%  { opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.lp-brand__icon {
    position: relative;
    z-index: 2;
    width: 140px;
    height: auto;
    animation: lp-icon-enter 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes lp-icon-enter {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}


/* ─── MAAT + ERP title ────────────────────── */

.lp-brand__title {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    direction: rtl;
}

.lp-maat {
    display: flex;
    gap: 2px;
}

.lp-letter {
    font-size: 4.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: inline-block;
    font-family: 'Segoe UI', 'Arial Black', sans-serif;
    text-shadow: 0 2px 16px rgba(255,255,255,0.15);
    animation: lp-letter-float 3.6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.22s);
}

@keyframes lp-letter-float {
    0%, 100% {
        transform: translateY(0);
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(255,255,255,0.25);
    }
    50% {
        transform: translateY(-9px);
        color: #ffffff;
        text-shadow: 0 0 22px rgba(255,255,255,0.7), 0 0 44px rgba(34,216,192,0.45);
    }
}

.lp-erp {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lp-teal);
    letter-spacing: 5px;
    padding-bottom: 9px;
    opacity: 0;
    animation: lp-erp-enter 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.1s both;
}

@keyframes lp-erp-enter {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}


/* ─── Divider ─────────────────────────────── */

.lp-brand__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lp-teal), transparent);
    border-radius: 1px;
}


/* ─── Badges ──────────────────────────────── */

.lp-brand__badges {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
    max-width: 310px;
}

.lp-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.92);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
}

.lp-badge:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(13,168,146,0.35);
}

.lp-badge i {
    color: var(--lp-teal);
    font-size: 1rem;
    flex-shrink: 0;
}


/* ─── Form panel ──────────────────────────── */

.lp-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 3rem 2rem;
    position: relative;
}

.lp-form__inner {
    width: 100%;
    max-width: 400px;
}

.lp-form__logo {
    display: block;
    width: 280px;
    height: auto;
    margin: 0 auto 2rem;
}

.lp-form__eyebrow {
    text-align: center;
    color: var(--lp-teal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.lp-form__title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--lp-text-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.lp-form__subtitle {
    text-align: center;
    color: var(--lp-text-gray);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}


/* ─── Fields ──────────────────────────────── */

.lp-field {
    position: relative;
    margin-bottom: 1.1rem;
}

.lp-field__icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
}

.lp-field__input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--lp-border);
    border-radius: 12px;
    padding-inline-start: 44px;
    padding-inline-end: 44px;
    font-size: 0.92rem;
    color: #111827;
    background: var(--lp-input-bg);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    font-family: inherit;
}

.lp-field__input:focus {
    border-color: var(--lp-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13,168,146,0.13);
}

.lp-field__input::placeholder {
    color: #9ca3af;
}

.lp-field__toggle {
    position: absolute;
    top: 50%;
    inset-inline-end: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #b0b8c4;
    padding: 4px 6px;
    font-size: 0.9rem;
    line-height: 1;
    z-index: 2;
    transition: color 0.15s;
}

.lp-field__toggle:hover {
    color: var(--lp-text-gray);
}

.lp-field .field-validation-error {
    display: block;
    color: #ef4444;
    font-size: 0.76rem;
    margin-top: 4px;
    padding-inline-start: 4px;
}


/* ─── Submit button ───────────────────────── */

.lp-submit {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-navy-mid) 0%, var(--lp-teal) 100%);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.lp-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
}

.lp-submit:hover::before { transform: translateX(110%); }

.lp-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(13,168,146,0.35);
}

.lp-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.lp-submit__spin {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes lp-spin {
    to { transform: rotate(360deg); }
}


/* ─── Language button ─────────────────────── */

.lp-lang {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--lp-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #374151;
    text-decoration: none;
    transition: border-color 0.18s, color 0.18s;
    letter-spacing: 0.3px;
}

.lp-lang:hover {
    border-color: var(--lp-teal);
    color: var(--lp-teal);
}


/* ─── Error alert ─────────────────────────── */

.lp-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    padding: 10px 16px;
    font-size: 0.83rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}


/* ─── Responsive ──────────────────────────── */

@media (max-width: 900px) {
    .lp-brand { display: none; }
    .lp-form  { padding: 2rem 1.5rem; }
    body      { background: #f8fafc; }
}

@media (max-width: 480px) {
    .lp-form__inner { max-width: 100%; }
    .lp-form__title { font-size: 1.5rem; }
    .lp-letter      { font-size: 3.2rem; }
}
