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

body,
html {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    font-size: 17px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background-color: #ffffff !important;
}

.login-box {
    display: none !important;
}

.modern-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99999;
    background: #ffffff;
}

.modern-left {
    flex: 1;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?q=80&w=2670&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.modern-logo i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    font-size: 20px;
}

.modern-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    max-width: 650px;
    color: #ffffff;
}

.modern-hero p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 550px;
    margin: 0;
}

.modern-stats {
    display: flex;
    gap: 4rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    color: white;
    letter-spacing: -0.5px;
}

.stat-item p {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin: 0;
    text-transform: uppercase;
}

.modern-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    background: #ffffff;
}

.modern-form-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.modern-form-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.modern-form-container>p.subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 2.5rem;
}

.modern-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.modern-form-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.modern-form-group label a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.modern-form-group label a:hover {
    text-decoration: underline;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 3.05rem;
    color: #64748b;
    font-size: 1.2rem;
}

.input-icon-right {
    position: absolute;
    right: 1.2rem;
    top: 2.85rem;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
}

.input-icon-right:hover {
    color: #0f172a;
}

.modern-input {
    width: 100%;
    padding: 0.9rem 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 1.05rem;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 3.5rem;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
}

.modern-checkbox input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    accent-color: #2563eb;
}

.modern-btn {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -2px rgba(37, 99, 235, 0.2);
    font-family: inherit;
    height: 3.5rem;
}

.modern-btn:hover {
    background-color: #1d4ed8;
}

.modern-btn:active {
    transform: translateY(1px);
}

.modern-footer {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.75rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.modern-footer-text {
    line-height: 1.5;
}

.modern-footer-links {
    display: flex;
    gap: 1.5rem;
}

.modern-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.modern-footer-links a:hover {
    color: #0f172a;
}

.modern-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-alert.danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.modern-alert.info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

#loginform div.error {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .modern-left {
        display: none;
    }

    .modern-right {
        padding: 2rem 1.5rem;
    }

    .modern-form-container {
        max-width: 100%;
        width: 100%;
    }

    .modern-brand-mobile {
        display: flex !important;
        align-items: center;
        gap: 12px;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 3rem;
        color: #0f172a;
    }

    .modern-brand-mobile i {
        background: #2563eb;
        color: white;
        padding: 8px;
        border-radius: 8px;
    }

    .modern-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modern-footer-text {
        max-width: 100%;
    }
}

.modern-brand-mobile {
    display: none;
}