.modern-auth-page {
    min-height: 100vh;
    background: #f7fbff;
    color: #111827;
    font-family: Poppins-Regular, Arial, sans-serif;
}

.modern-login-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 84%, rgba(59, 130, 246, .09) 0 18%, transparent 18.5%),
        radial-gradient(circle at 4% 22%, rgba(96, 165, 250, .08) 0 18%, transparent 18.5%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #edf6ff 100%);
}

.modern-login-shell::before,
.modern-login-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.modern-login-shell::before {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -160px;
    border-radius: 50%;
    background: rgba(219, 234, 254, .72);
}

.modern-login-shell::after {
    width: 480px;
    height: 480px;
    left: -210px;
    top: -180px;
    border-radius: 50%;
    background: rgba(219, 234, 254, .52);
}

.modern-login-dots {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: .65;
    background-image: radial-gradient(#93c5fd 2px, transparent 2.5px);
    background-size: 18px 18px;
}

.modern-login-dots-left {
    left: 0;
    top: 95px;
}

.modern-login-dots-right {
    right: 34px;
    bottom: 94px;
}

.modern-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr);
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .12);
}

.modern-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 96px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #0f6eea 0%, #3b82f6 48%, #60a5fa 100%);
}

.modern-login-brand::before,
.modern-login-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.modern-login-brand::before {
    width: 540px;
    height: 540px;
    right: -260px;
    top: -210px;
    background: rgba(255, 255, 255, .09);
}

.modern-login-brand::after {
    width: 620px;
    height: 280px;
    left: -150px;
    bottom: -150px;
    background: rgba(255, 255, 255, .18);
    transform: rotate(10deg);
}

.modern-login-logo,
.modern-login-brand-copy,
.modern-login-benefits {
    position: relative;
    z-index: 1;
}

.modern-login-logo {
    width: 118px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

.modern-login-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.modern-login-brand h1,
.modern-login-heading h2 {
    margin: 0;
    letter-spacing: 0;
}

.modern-login-brand h1 {
    font-family: Poppins-Bold, Arial, sans-serif;
    font-size: 32px;
    line-height: 1.18;
}

.modern-login-brand-copy p {
    max-width: 310px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    line-height: 1.65;
}

.modern-login-benefits {
    display: grid;
    gap: 26px;
    margin-top: 38px;
}

.modern-login-benefit {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 14px;
    align-items: center;
}

.modern-login-benefit span {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 21px;
}

.modern-login-benefit strong {
    display: block;
    color: #fff;
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-size: 15px;
}

.modern-login-benefit p {
    margin-top: 5px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.45;
}

.modern-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
}

.modern-login-form {
    width: min(100%, 440px);
}

.modern-login-heading {
    margin-bottom: 32px;
    text-align: center;
}

.modern-login-heading h2 {
    color: #0f172a;
    font-family: Poppins-Bold, Arial, sans-serif;
    font-size: 30px;
    line-height: 1.25;
}

.modern-login-heading p {
    margin-top: 12px;
    color: #667085;
    font-size: 16px;
}

.modern-form-group {
    margin-bottom: 24px;
}

.modern-form-group label {
    margin-bottom: 10px;
    color: #111827;
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-size: 14px;
}

.modern-input-shell {
    position: relative;
}

.modern-input-shell i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475467;
    font-size: 18px;
}

.modern-input-shell input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 52px;
    border: 1px solid #d5dce8;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-family: Poppins-Regular, Arial, sans-serif;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.modern-input-shell input::placeholder {
    color: #8b98ad;
}

.modern-input-shell input:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.modern-field-error {
    display: block;
    margin-top: 8px;
    color: #b42318;
    font-family: Poppins-Medium, Arial, sans-serif;
    font-size: 13px;
}

.modern-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 28px;
}

.modern-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-family: Poppins-Medium, Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.modern-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
}

.modern-login-row a,
.modern-login-support {
    color: #0b66e4;
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-size: 14px;
}

.modern-login-row a:hover {
    color: #084eb0;
}

.modern-login-submit {
    width: 100%;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #5b9bff 0%, #0066e6 100%);
    color: #fff;
    font-family: Poppins-SemiBold, Arial, sans-serif;
    font-size: 16px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
    transition: transform .18s ease, box-shadow .18s ease;
}

.modern-login-submit:hover,
.modern-login-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}

.modern-login-submit:active {
    transform: translateY(0);
}

.modern-login-support {
    margin-top: 28px;
    text-align: center;
}

.modern-demo-logins {
    max-height: 220px;
    margin-top: 22px;
    overflow: auto;
    border: 1px solid #d5dce8;
    border-radius: 8px;
}

.modern-demo-logins table {
    width: 100%;
    border-collapse: collapse;
    color: #111827;
    font-size: 13px;
}

.modern-demo-logins th,
.modern-demo-logins td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.modern-demo-logins th {
    background: #eff6ff;
    font-family: Poppins-SemiBold, Arial, sans-serif;
}

@media (max-width: 1024px) {
    .modern-login-card {
        grid-template-columns: 1fr;
        width: min(100%, 560px);
        min-height: 0;
    }

    .modern-login-brand {
        padding: 42px;
        text-align: center;
        align-items: center;
    }

    .modern-login-brand-copy p {
        max-width: 420px;
    }

    .modern-login-benefits {
        width: 100%;
        max-width: 420px;
        text-align: left;
    }

    .modern-login-form-panel {
        padding: 42px;
    }
}

@media (max-width: 576px) {
    .modern-login-shell {
        padding: 18px;
    }

    .modern-login-card {
        border-radius: 12px;
    }

    .modern-login-brand {
        padding: 34px 24px;
    }

    .modern-login-logo {
        width: 94px;
        height: 94px;
        margin-bottom: 22px;
    }

    .modern-login-logo img {
        width: 58px;
        height: 58px;
    }

    .modern-login-brand h1,
    .modern-login-heading h2 {
        font-size: 25px;
    }

    .modern-login-form-panel {
        padding: 34px 22px;
    }

    .modern-login-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
