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

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

.new-portal-wrap {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--np-brand-rgb), 0.22), transparent 36%),
        radial-gradient(circle at 88% 82%, rgba(var(--np-brand-rgb), 0.16), transparent 34%),
        linear-gradient(160deg, #fff 0%, rgba(var(--np-brand-rgb), 0.08) 100%);
}

.np-liquid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.np-blob {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(var(--np-brand-rgb), 0.55), rgba(var(--np-brand-rgb), 0.12) 68%, transparent 72%);
    filter: blur(2px);
    animation: np-liquid 16s ease-in-out infinite;
}

.np-blob-1 { width: 280px; height: 280px; top: -40px; left: -60px; animation-duration: 18s; }
.np-blob-2 { width: 180px; height: 180px; top: 18%; left: 34%; animation-duration: 14s; animation-delay: -4s; opacity: 0.7; }
.np-blob-3 { width: 340px; height: 340px; bottom: -90px; left: 18%; animation-duration: 22s; animation-delay: -6s; }
.np-blob-4 { width: 220px; height: 220px; top: 8%; right: 8%; animation-duration: 17s; animation-delay: -2s; }
.np-blob-5 { width: 160px; height: 160px; bottom: 12%; right: 22%; animation-duration: 13s; animation-delay: -8s; opacity: 0.75; }

@keyframes np-liquid {
    0%, 100% {
        border-radius: 42% 58% 62% 38% / 46% 38% 62% 54%;
        transform: translate(0, 0) scale(1);
    }
    33% {
        border-radius: 62% 38% 42% 58% / 38% 62% 38% 62%;
        transform: translate(28px, -22px) scale(1.08);
    }
    66% {
        border-radius: 36% 64% 58% 42% / 58% 42% 58% 42%;
        transform: translate(-18px, 26px) scale(0.94);
    }
}

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

.np-ico {
    position: absolute;
    color: var(--np-brand);
    opacity: 0.28;
}

.ico-1 { top: 8%; left: 6%; font-size: 28px; animation: np-drift-a 16s ease-in-out infinite; }
.ico-2 { top: 22%; left: 18%; font-size: 24px; animation: np-drift-b 20s ease-in-out infinite; }
.ico-3 { top: 70%; left: 8%; font-size: 26px; animation: np-drift-c 18s ease-in-out infinite; }
.ico-4 { top: 84%; left: 22%; font-size: 22px; animation: np-drift-a 22s ease-in-out infinite reverse; }
.ico-5 { top: 46%; left: 4%; font-size: 30px; animation: np-drift-b 19s ease-in-out infinite; }
.ico-6 { top: 12%; left: 42%; font-size: 20px; animation: np-drift-c 17s ease-in-out infinite reverse; }
.ico-7 { top: 10%; right: 10%; font-size: 34px; animation: np-drift-a 18s ease-in-out infinite; }
.ico-8 { top: 32%; right: 6%; font-size: 26px; animation: np-drift-b 21s ease-in-out infinite reverse; }
.ico-9 { top: 54%; right: 14%; font-size: 24px; animation: np-drift-c 16s ease-in-out infinite; }
.ico-10 { top: 74%; right: 8%; font-size: 28px; animation: np-drift-a 23s ease-in-out infinite reverse; }
.ico-11 { top: 86%; right: 28%; font-size: 22px; animation: np-drift-b 15s ease-in-out infinite; }
.ico-12 { top: 18%; right: 30%; font-size: 24px; animation: np-drift-c 20s ease-in-out infinite reverse; }

@keyframes np-drift-a {
    0%, 100% { transform: translate(0, 0) rotate(-8deg); }
    50% { transform: translate(22px, -26px) rotate(10deg); }
}
@keyframes np-drift-b {
    0%, 100% { transform: translate(0, 0) rotate(6deg); }
    50% { transform: translate(-24px, 18px) rotate(-10deg); }
}
@keyframes np-drift-c {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(16px, 22px) rotate(12deg); }
}

.np-login-grid {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: 56px;
    align-items: center;
}

.np-login-copy h1 {
    margin: 14px 0 12px;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--np-brand);
    max-width: 520px;
}

.np-login-copy > p {
    margin: 0 0 22px;
    max-width: 460px;
    font-size: 16px;
    line-height: 1.55;
    color: #475569;
}

.np-copy-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-logo {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.np-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(var(--np-brand-rgb), 0.12);
    color: var(--np-brand);
    font-size: 13px;
    font-weight: 700;
}

.np-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 22px;
    max-width: 460px;
}

.np-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.np-feature > span {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--np-brand-rgb), 0.12);
    color: var(--np-brand);
    font-size: 16px;
}

.np-feature strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
}

.np-feature p {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.np-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    font-size: 12px;
    color: #64748b;
}

.np-form-foot i {
    margin-right: 6px;
    color: var(--np-brand);
}

.np-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.np-pills i {
    margin-right: 6px;
    color: var(--np-brand);
}

.np-pills span {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(var(--np-brand-rgb), 0.18);
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(var(--np-brand-rgb), 0.08);
}

.portal-form {
    background: #fff;
    border-radius: 28px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.np-card-head {
    text-align: center;
    margin-bottom: 22px;
}

.np-card-head .brand-logo {
    display: block;
    margin: 0 auto 12px;
    max-height: 64px;
    max-width: 180px;
}

.np-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--np-brand);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(var(--np-brand-rgb), 0.35);
}

.np-card-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.np-card-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 14px;
}

.np-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.input-div {
    margin: 0 0 14px;
}

.field-row {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0 14px;
    min-height: 48px;
}

.field-row:focus-within {
    border-color: var(--np-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--np-brand-rgb), 0.16);
}

.field-row .input {
    width: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 10px 0;
    font-size: 14px;
    color: #0f172a;
    font-family: inherit;
}

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

.toggle-pass {
    border: none;
    background: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 18px;
    font-size: 13px;
}

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

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

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

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

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.btn-login {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    background: var(--np-brand);
    box-shadow: 0 12px 24px rgba(var(--np-brand-rgb), 0.28);
}

.btn-login:hover {
    filter: brightness(0.94);
}

.signup-link {
    white-space: nowrap;
}

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

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

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

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

.np-login-grid.np-admin-login {
    grid-template-columns: 1fr minmax(340px, 420px);
}

@media screen and (max-width: 900px) {
    .np-login-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .np-login-grid.np-admin-login {
        grid-template-columns: 1fr;
    }
    .np-admin-login .portal-form {
        order: -1;
    }
    .portal-form {
        order: -1;
    }
    .np-login-copy h1 {
        font-size: 34px;
    }
    .new-portal-wrap {
        align-items: flex-start;
        padding: 28px 16px 40px;
    }
}
