@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.new-portal-login {
    font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: #f4eefe;
}

.new-portal-wrap {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    background: #f4eefe;
    position: relative;
    overflow: hidden;
}

.float-icons {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    overflow: hidden;
}

.float-ico {
    position: absolute;
}

.ico-page {
    color: var(--np-brand);
    opacity: 0.45;
}

.ico-front {
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(76, 43, 181, 0.35);
}

.ico-1 { top: 6%; left: 4%; font-size: 28px; animation: drift-a 16s ease-in-out infinite; }
.ico-2 { top: 22%; left: 10%; font-size: 26px; animation: drift-b 20s ease-in-out infinite; }
.ico-3 { top: 72%; left: 5%; font-size: 24px; animation: drift-c 18s ease-in-out infinite; }
.ico-4 { top: 88%; left: 18%; font-size: 30px; animation: drift-a 22s ease-in-out infinite reverse; }
.ico-5 { top: 40%; left: 2%; font-size: 22px; animation: drift-b 24s ease-in-out infinite; }
.ico-6 { top: 8%; left: 46%; font-size: 22px; animation: drift-c 19s ease-in-out infinite reverse; }
.ico-7 { top: 78%; left: 42%; font-size: 26px; animation: drift-a 15s ease-in-out infinite; }
.ico-8 { top: 50%; left: 8%; font-size: 24px; animation: drift-c 21s ease-in-out infinite; }
.ico-9 { top: 14%; right: 8%; font-size: 32px; animation: drift-a 17s ease-in-out infinite; }
.ico-10 { top: 38%; right: 6%; font-size: 28px; animation: drift-b 19s ease-in-out infinite reverse; }
.ico-11 { top: 58%; right: 14%; font-size: 26px; animation: drift-c 16s ease-in-out infinite; }
.ico-12 { top: 24%; right: 22%; font-size: 24px; animation: drift-a 21s ease-in-out infinite reverse; }
.ico-13 { top: 70%; right: 8%; font-size: 28px; animation: drift-b 18s ease-in-out infinite; }
.ico-14 { top: 82%; right: 24%; font-size: 24px; animation: drift-c 23s ease-in-out infinite reverse; }
.ico-15 { top: 46%; right: 28%; font-size: 22px; animation: drift-a 20s ease-in-out infinite; }
.ico-16 { top: 10%; right: 32%; font-size: 26px; animation: drift-b 15s ease-in-out infinite reverse; }

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); }
    50% { transform: translate(22px, -26px) rotate(10deg); }
}

@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) rotate(6deg); }
    50% { transform: translate(-24px, 18px) rotate(-10deg); }
}

@keyframes drift-c {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, 22px) rotate(12deg); }
}

.new-portal-card {
    width: min(1240px, 100%);
    min-height: 640px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(90, 50, 180, 0.14);
    z-index: 1;
}

.portal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.portal-form {
    position: relative;
    z-index: 20;
    width: 340px;
    max-width: 42%;
    height: auto;
    margin: 0;
    padding: 48px 0 48px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
    pointer-events: auto;
}

.brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 28px;
    width: 100%;
}

.brand-logo {
    max-height: 92px;
    max-width: 220px;
    object-fit: contain;
}

.brand-name {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input-div {
    margin: 0 0 12px;
    width: 100%;
}

.field-row {
    display: flex;
    align-items: center;
    border: 1px solid #e6e3f0;
    border-radius: 28px;
    background: #fff;
    padding: 0 16px;
    min-height: 44px;
}

.input-div.focus .field-row,
.field-row:focus-within {
    border-color: var(--np-brand);
}

.field-row .i {
    color: #c0bdd2;
    width: 20px;
}

.field-row .input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 8px 8px;
    font-size: 13px;
    color: #1f1638;
    font-family: inherit;
}

.field-row .input::placeholder {
    color: #b0adc4;
}

.toggle-pass {
    border: none;
    background: none;
    color: #c0bdd2;
    cursor: pointer;
    padding: 0 2px;
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 4px 0 22px;
    font-size: 12px;
    width: 100%;
}

.remember-me {
    color: #6b6880;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.remember-me input {
    accent-color: var(--np-brand);
}

.forgot-link {
    color: var(--np-brand);
    text-decoration: none;
    font-weight: 600;
}

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

.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
}

.btn-login {
    min-width: 150px;
    height: 42px;
    border-radius: 28px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: var(--np-brand);
    padding: 0 28px;
}

.btn-login:hover {
    background: var(--np-brand-dark);
}

.signup-link {
    color: var(--np-brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.input-div p.error,
.new-portal-card .error {
    color: #b91c1c;
    font-size: 12px;
    margin: 6px 0 0 16px;
}

.terms-row {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 12px;
}

.new-portal-footer {
    width: 100%;
    background: #111827;
    color: #fff;
    padding: 15px;
}

.new-portal-footer a {
    color: #fff;
}

@media screen and (max-width: 992px) {
    .new-portal-card {
        height: auto;
        min-height: 0;
    }

    .portal-bg {
        display: none;
    }

    .portal-form {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 28px 22px 36px;
        background: #fff;
    }
}
